I want to write a command like
a-b, except that if the current character is the right part of something in
matching_pairs, then I want to behave like
m. Similarly, I want a command like
a-e that is dual (cares about the left part of
I think I could do this by grabbing the current character, sending it to a shell script that then returns the appropriate command sequence. Is that the “Kakoune”-way or is there another strategy for this sort of conditional command?