vim-bookmarks icon indicating copy to clipboard operation
vim-bookmarks copied to clipboard

Suggest add option to don't show sign

Open hiberabyss opened this issue 8 years ago • 2 comments

In most cases, I just want to jump to the right place from the bookmark list, I don't care which line in current file is a bookmark or annotation, so show signs is useless for me.

  • Can there be an option like g:bookmark_sign_disable? When it is set, then no signs will be shown.
  • There can be a command BookmarkSignToggle, which control whether show the signs or not.

Another little problem: when run vim directly without opening a file, then run :Unite vim_bookmarks, following error message will be shown

[unite.vim] unite buffer "default" candidates are empty

Thanks.

hiberabyss avatar Mar 09 '16 15:03 hiberabyss

Hi check my comment at https://github.com/MattesGroeger/vim-bookmarks/issues/124, you might be interested

reorx avatar Aug 31 '19 06:08 reorx

Hi @hiberabyss,

thanks for the suggestion of this feature. I do understand your reasoning/use-case.

Thx @reorx for investigating this already.

This is what you wrote in #124:

I explored the code and figured out how to disable signs (added a new option bookmark_sign_disabled), but because the line highlighting feature relies on the sign (which is actually vim's built-in sign feature), it's not possible to keep line highlight while simply disable the sign. According to my very limited vim script knowledge, using match group for lines should be able to achieve that (see this article), but I'm not experienced enough to refactor in that way.

If you are interested in my implementation (can only disable sign and line highlight simultaneously), tell me and I will upload the code to a fork repo.

Do you have any update on the feasibility of this? It sounds like it requires a rather different implementation and would make this plugin quite complex.

MattesGroeger avatar Aug 22 '21 19:08 MattesGroeger