diff options
author | vwkd | 2023-06-07 22:41:35 +0000 |
---|---|---|
committer | GitHub | 2023-06-07 22:41:35 +0000 |
commit | 352d1574a63b5ecd9ec7fdd8c4ae8e4eedbd4cf3 (patch) | |
tree | d70c2156b51c9f47f746d6066ed1c99b2bcbc06a /helix-term | |
parent | 2f9b63999fb9d7b8e2ba7d728faf0dc37566987b (diff) |
add move_prev_long_word_end and extend_prev_long_word_end (#6905)
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 0c24c693..99f50b04 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -247,6 +247,7 @@ impl MappableCommand { move_next_long_word_start, "Move to start of next long word", move_prev_long_word_start, "Move to start of previous long word", move_next_long_word_end, "Move to end of next long word", + move_prev_long_word_end, "Move to end of previous long word", extend_next_word_start, "Extend to start of next word", extend_prev_word_start, "Extend to start of previous word", extend_next_word_end, "Extend to end of next word", @@ -254,6 +255,7 @@ impl MappableCommand { extend_next_long_word_start, "Extend to start of next long word", extend_prev_long_word_start, "Extend to start of previous long word", extend_next_long_word_end, "Extend to end of next long word", + extend_prev_long_word_end, "Extend to end of prev long word", find_till_char, "Move till next occurrence of char", find_next_char, "Move to next occurrence of char", extend_till_char, "Extend till next occurrence of char", @@ -1067,6 +1069,10 @@ fn move_prev_long_word_start(cx: &mut Context) { move_word_impl(cx, movement::move_prev_long_word_start) } +fn move_prev_long_word_end(cx: &mut Context) { + move_word_impl(cx, movement::move_prev_long_word_end) +} + fn move_next_long_word_end(cx: &mut Context) { move_word_impl(cx, movement::move_next_long_word_end) } @@ -1224,6 +1230,10 @@ fn extend_prev_long_word_start(cx: &mut Context) { extend_word_impl(cx, movement::move_prev_long_word_start) } +fn extend_prev_long_word_end(cx: &mut Context) { + extend_word_impl(cx, movement::move_prev_long_word_end) +} + fn extend_next_long_word_end(cx: &mut Context) { extend_word_impl(cx, movement::move_next_long_word_end) } |