chentoast / marks.nvim

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

better support for global marks #75

Closed qwertzui11 closed 1 year ago

qwertzui11 commented 1 year ago

Hi

Thanks for this great plugin!

I was wandering if there is any support for toggling global marks?

m; toggles a buffer (lower case) mark. Toggle the next available mark at the current line I have not been able to find the same feature for global "upper case" marks.

With global marks I image a nice workflow in combination with Telescopes builtin.marks picker.

Thanks for your time, Cheers, Markus

chentoast commented 1 year ago

Instead of adding a toggle for capital marks, would it suffice to simply allow for deleting capital marks from a different buffer? That way, you can do mA and dmA from any buffer to toggle. This usecase seems uncommon enough that I'd like to avoid adding another mapping just to save on 2-3 keystrokes, plus it also runs a bit counter to what capital marks are intended for - long lasting associations to a location in a particular file. If you're looking to quickly save position across buffers, then you should probably be using bookmarks instead.

qwertzui11 commented 1 year ago

You are correct, I miss interpreted the usage of marks. Bookmarks are the goal I was looking for.