repeat_last_motion (Alt+.) with find_next_char (f) does not respect context #7710
-
SummaryFor helix 23.05, using repeat_last_motion with find_next_char or till_next_char always extended selection. However this was deemed 'odd' and was fixed in #7159 The behaviour on master (using 23.05-245-g505213d4) is now using "f" will respect the context.
This however have the side effect of storing the "extended-ness" the next time we use Alt-. Reproduction StepsOn helix 23.05-245-g505213d4 I tried this:
Here is asciinema of input: I expected this to happen: Alt-. to extend the selection I made in visual mode Instead, this happened: Alt-. cancelled my selection Helix logN/A PlatformLinux - Ubuntu 23.04 Terminal Emulatorkitty Helix Version23.05-245-g505213d4 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
One easy solution would be to instead having
have the underlying function, |
Beta Was this translation helpful? Give feedback.
-
This is on purpose. The concept of visual mode as a special mode will be removed entirely in the future. Visual mode will just be a keymap mode, with each command having a an extend and non-extend variant |
Beta Was this translation helpful? Give feedback.
This is on purpose. The concept of visual mode as a special mode will be removed entirely in the future. Visual mode will just be a keymap mode, with each command having a an extend and non-extend variant