-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add move_prev_long_word_end and extend_prev_long_word_end commands #6905
Conversation
pub fn move_prev_word_end(slice: RopeSlice, range: Range, count: usize) -> Range { | ||
word_move(slice, range, count, WordMotionTarget::PrevWordEnd) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just moved up from below where it was out of sequence.
("Starting from after boundary retreats the anchor", | ||
vec![(1, Range::new(0, 9), Range::new(8, 0))], | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was commented out in test_behaviour_when_moving_to_start_of_previous_long_words
but seems to be passing here so I added it back.
Fixes #6904
Adds the
move_prev_long_word_end
andextend_prev_long_word_end
commands.Tests are adapted from
test_behaviour_when_moving_to_start_of_previous_long_words
of themove_prev_long_word_start
command, please double check if these are correct.Here's a quick config to test the new commands with the keybinding
A-W
, together withA-w
for the already existing but by default unboundmove_prev_word_end
.