marks.nvim icon indicating copy to clipboard operation
marks.nvim copied to clipboard

Change sign for uppercase letter not working (works for numbers only?)

Open Sebastian-Nielsen opened this issue 9 months ago • 2 comments

Works as expected for bookmark_M but not for bookmark_0. Is that just because it hasn't been implemented for numbers yet or is it a bug?

      bookmark_0 = {
	sign = "→",
	virt_text = "hello world",
      },
      bookmark_M = {
	sign = "⚑",
	virt_text = "This doesnt work",
      },

https://gyazo.com/f4047a4774722c11ba7ba36dde24d163.gif

Sebastian-Nielsen avatar Mar 16 '25 12:03 Sebastian-Nielsen

This doesn't work by design; allowing for this would clobber setting the M uppercase mark.

chentoast avatar May 13 '25 22:05 chentoast

Note that vim's builtin numbered marks couldn't be set mannually (see :h :marks | /^Numbered). That's why marks.nvim simply override the mapping m<num> to it's "bookmark" function with annotation/description support. Uppercase marks is just not the same.

Numbered marks '0 to '9 are quite different. They can not be set directly. They are only present when using a shada file |shada-file|. Basically '0 is the location of the cursor when you last exited Vim, '1 the last but one time, etc. Use the "r" flag in 'shada' to specify files for which no Numbered mark should be stored. See |shada-file-marks|.

Zevan770 avatar May 20 '25 19:05 Zevan770