Here the function chom/toggle-thing replaces using regexp matches defined in chom/toggle-thing-alist. For exmaple (visual . ("test" . "tested")) says: in visual mode check if selected region is equal to "test" and replace it with "tested".
I don't know if there is some function that is not compatible with evil-mc or there's something else I'm missing. I tried modifying evil-mc-custom-known-commands with different functions like evil-mc-execute-call-with-region-or-pos but it didn't produce expected result.
To reproduce:
select two words "test" - one with real and one with fake cursor
press C-l (my binding) or interactively call chom/toggle-thing.
Expected result:
both "test" are changed to "tested"
Actual result:
real cursor's "test" changed to "tested", fake cursor's "test" stayed as is
Here the function
chom/toggle-thing
replaces using regexp matches defined inchom/toggle-thing-alist
. For exmaple(visual . ("test" . "tested"))
says: in visual mode check if selected region is equal to "test" and replace it with "tested".I don't know if there is some function that is not compatible with evil-mc or there's something else I'm missing. I tried modifying
evil-mc-custom-known-commands
with different functions likeevil-mc-execute-call-with-region-or-pos
but it didn't produce expected result.To reproduce: select two words "test" - one with real and one with fake cursor press
C-l
(my binding) or interactively callchom/toggle-thing
.Expected result: both "test" are changed to "tested"
Actual result: real cursor's "test" changed to "tested", fake cursor's "test" stayed as is