chentoast / marks.nvim

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

Leftover group virtual text #9

Closed levouh closed 2 years ago

levouh commented 2 years ago

Marking a group on a given line multiple times, say m0m0 puts two virtual text instances. Them doing dm0 on the same line will delete the sign and only one of the virtual text groups.

image

chentoast commented 2 years ago

I think the solution should be to instead prevent multiple bookmarks on the same line. Is there a particular reason/workflow that necessitates being able to set multiple bookmarks on a single line?

levouh commented 2 years ago

Zero reason, just happened to do it when trying to figure out how the plugin works on accident.

levouh commented 2 years ago

There might be use cases where people would want to mark a buffer local and then a group mark on the same line though (think namespaces, like working on the same file for two different reasons and easier to mentally group them like this). However I can't imagine there is a case for multiple marks in the same group, at the very least.