Open yehuohan opened 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.
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':
a
on current line, it will add a mark a
on the current cursor position.a
on current line, it will remove the mark a
. @chentoast Would it be possible to merge this?
This would be great to have! Makes total sense, specially after having used this feature with kshenoy/vim-signature
.
Add
toggle_mark
command to toggle inputed mark at current line like whatkshenoy/vim-signature
(it usesg:SignatureMap.Leader
to toggle inputed mark) does.