vim-signature
vim-signature copied to clipboard
Display internal marks
Sorry, signature doesn't currently support the internal marks. It's on the TODO list but I've been busy with work lately so can't make any promises about when I'll be able to implement it. I think showmarks does though.
+1
@kshenoy would like to have a go at PR for this. Any pointers to get me started?
@nomasprime Tbh, I'd question the value-add of doing this. That's partly why I haven't added this yet. Between vim's internal :marks
command and most navigation plugins like CtrlP, Fzf etc. adding support for jumping to marks, I've been wondering if this is really useful.
I don't mean to discourage and nor am I against adding support, it's just that I couldn't convince myself that I'd be adding something new.
Ok, I added support for this on the dev_internal_marks. Give it a go and let me know in case of any issues. I'll merge it into the master in a couple of days if everything's hunky-dory.
I add in my vimrc:
let g:SignatureDisplaySplMarks='[]<>"^.(){}'
But I see nothing:
@sanpii Oh, sorry about that. I only added it to the LocationList, not the display. I'll get back to you
@kshenoy : Are you working on this? I really would love to see internal marks in the sign column. That way, I would use them more often!
Hi @kshenoy. My notifications weren't set up properly, only just saw your reply.
@nomasprime Tbh, I'd question the value-add of doing this. That's partly why I haven't added this yet. Between vim's internal
:marks
command and most navigation plugins like CtrlP, Fzf etc. adding support for jumping to marks, I've been wondering if this is really useful. I don't mean to discourage and nor am I against adding support, it's just that I couldn't convince myself that I'd be adding something new.
I can't speak for others but I suspect their reasoning's pretty similar: the internal marks are really useful for operations like re-selecting the last visual selection; very hard to keep track of all the internal marks in your head so would be really helpful to see them on the screen before issuing the command; also one less thing to commit to memory, learning curve of Vim's already pretty intense.
For me this has been the one missing feature from all marks plug-ins for a long time. Really glad you've decided to add it, will definitely help distinguish vim-signature from similar projects.
@sanpii Oh, sorry about that. I only added it to the LocationList, not the display. I'll get back to you
Can't say I've ever used them in the location list but I guess it should be applied consistently to wherever other marks are shown.
Really looking forward to trying this out but it's been a long day. Will check it out first thing tomorrow.
PS Probably a good idea to toggle displaying internal marks with a config option and have it disabled by default, imagine some users won't want to see them.
Hello, any updates regarding this? I would love to have this feature, it should definitely help incorporate internal marks into workflow.
+1, these automatic marks indeed are really difficult to keep track of in the head, but incredibly useful if utilized well. would totally make this plugin perfect for me!