chentoast / marks.nvim

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

Annotation for regular Marks #78

Open smeikx opened 2 years ago

smeikx commented 2 years ago

It seems annotations only work for bookmarks. Is there any way of adding annotations to native marks as well? Also, could these annotations persist between sessions? Would it be possible to use shada for this?

chentoast commented 2 years ago

Yes, this is possible, but difficult to do and thus low priority. Extmarks can have extra tagged data associated with them (like annotations), but regular marks are much more inflexible. The solution would be to implement regular mark tracking with extmarks and just sync extmark positions to the mark positions every so often, but that would be a big refactor.