chentoast / marks.nvim

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

feat: add toggle_mark #80

Open yehuohan opened 1 year ago

yehuohan commented 1 year ago

Add toggle_mark command to toggle inputed mark at current line like what kshenoy/vim-signature (it uses g:SignatureMap.Leader to toggle inputed mark) does.

chentoast commented 1 year ago

Can you please describe really quickly the intended usecase for this; ie, what would this allow that a regular toggle could not? Thanks for the PR.

yehuohan commented 1 year ago

Can you please describe really quickly the intended usecase for this; ie, what would this allow that a regular toggle could not? Thanks for the PR.

Sure. This PR add the toggle_mark, which means the toggle command need a inputed mark to perform its functionality. Under the setup with require('marks').setup{mappings = { toggle_mark = 'm'}} as an example: When press 'ma':

kamack38 commented 1 year ago

@chentoast Would it be possible to merge this?

goetzc commented 1 year ago

This would be great to have! Makes total sense, specially after having used this feature with kshenoy/vim-signature.