chentoast / marks.nvim

A better user experience for viewing and interacting with Vim marks.
MIT License
783 stars 40 forks source link

Feat telescope support to list marks #106

Open ValJed opened 4 months ago

ValJed commented 4 months ago

👋🏼

I was a bit frustrated when searching in my existing marks (I often lose myself). So I thought that a telescope extension would be a perfect fit for that (fuzzy finding, location preview).

I added two methods that return the right data for buffer marks and project marks as well as two telescope extensions that allow to get the current buffer marks and the project marks.

It looks like this for the buffer one:

image

And like this for the list all marks:

image

I named the extension marks_nvim because I had weird errors with marks that could be linked to possible conflicts.

Anyway, I hope it'll be useful to some and tanks for the great plugin!

ctorney commented 4 months ago

this is great - is it possible to list bookmarks as well?

ValJed commented 4 months ago

@ctorney I'm not familiar with bookmarks, but should be doable I suppose. I'll add it!

ValJed commented 4 months ago

@ctorney Done it now also supports bookmarks listing. See readme.

ctorney commented 3 months ago

Thanks @ValJed! Works perfectly