Skip to content

Commit 7468fa2

Browse files
asvlnthe-mikedavis
asvln
authored andcommitted
add extend_prev_word_end command
1 parent e232333 commit 7468fa2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

helix-term/src/commands.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,18 @@ impl MappableCommand {
210210
copy_selection_on_prev_line, "Copy selection on previous line",
211211
move_next_word_start, "Move to start of next word",
212212
move_prev_word_start, "Move to start of previous word",
213-
move_prev_word_end, "Move to end of previous word",
214213
move_next_word_end, "Move to end of next word",
214+
move_prev_word_end, "Move to end of previous word",
215215
move_next_long_word_start, "Move to start of next long word",
216216
move_prev_long_word_start, "Move to start of previous long word",
217217
move_next_long_word_end, "Move to end of next long word",
218218
extend_next_word_start, "Extend to start of next word",
219219
extend_prev_word_start, "Extend to start of previous word",
220+
extend_next_word_end, "Extend to end of next word",
221+
extend_prev_word_end, "Extend to end of previous word",
220222
extend_next_long_word_start, "Extend to start of next long word",
221223
extend_prev_long_word_start, "Extend to start of previous long word",
222224
extend_next_long_word_end, "Extend to end of next long word",
223-
extend_next_word_end, "Extend to end of next word",
224225
find_till_char, "Move till next occurrence of char",
225226
find_next_char, "Move to next occurrence of char",
226227
extend_till_char, "Extend till next occurrence of char",
@@ -310,8 +311,7 @@ impl MappableCommand {
310311
goto_line_end, "Goto line end",
311312
goto_next_buffer, "Goto next buffer",
312313
goto_previous_buffer, "Goto previous buffer",
313-
// TODO: different description ?
314-
goto_line_end_newline, "Goto line end",
314+
goto_line_end_newline, "Goto line end (newline)",
315315
goto_first_nonwhitespace, "Goto first non-blank in line",
316316
trim_selections, "Trim whitespace from selections",
317317
extend_to_line_start, "Extend to line start",
@@ -1093,6 +1093,10 @@ fn extend_next_word_end(cx: &mut Context) {
10931093
extend_word_impl(cx, movement::move_next_word_end)
10941094
}
10951095

1096+
fn extend_prev_word_end(cx: &mut Context) {
1097+
extend_word_impl(cx, movement::move_prev_word_end)
1098+
}
1099+
10961100
fn extend_next_long_word_start(cx: &mut Context) {
10971101
extend_word_impl(cx, movement::move_next_long_word_start)
10981102
}

0 commit comments

Comments
 (0)