Make m
a special textobject identifier representing pair under cursor
#956
Labels
m
a special textobject identifier representing pair under cursor
#956
I got used to kakoune's
m
selecting everything in-between and including the brackets. Doing the same in helix requires usingma
(sincemm
goes to the matching brace), which isn't so bad in and of itself. However it does require stopping to think which textobject is needed, as you might be on the character of any pair helix understands.I propose adding
m
as a special textobject indicating whichever textobject is recognized under cursor. The result is one can reliablymam
(ormim
) from any pair character and get the intended result without reaching for the appropriate textobject identifier, improving the ergonomics of match mode for little cost.If used inside a set of recognized nested textobjects, it would choose the closest. If none, it would do nothing.
The text was updated successfully, but these errors were encountered: