chentoast / marks.nvim

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

Bookmarks vs marks #107

Closed georgeguimaraes closed 4 months ago

georgeguimaraes commented 6 months ago

Hi, thanks for the plugin. I'm using it a lot with marks (especially "asdf" marks). However, what's the difference between regular marks and bookmarks (0-9)? I couldn't find a documentation in a glance.

chentoast commented 4 months ago

There's not much of a difference. But bookmarks have the advantage of being "grouped". So you could cycle through all bookmarks of group 1 using the same key, whereas with marks, you need to remember the exact alphabetical key to jump to the mark location.

The other feature that bookmarks have is the ability to customize virtual text annotations next to the bookmark

georgeguimaraes commented 4 months ago

ahh got it!

I need to provide my own mapping for next_bookmark0, next_bookmark1, ..., right? I can see now that there are m} and m{, but I can't see how I can access my bookmarks inside a group with the default config.

chentoast commented 4 months ago

Yes, that's right. You can set up a mapping for move_nextbookmark0 if you want to specifically jump to the next bookmark of group 0.