Skip to content

Commit e98ad3b

Browse files
committed
Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_word
1 parent 0e72e32 commit e98ad3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/reline/ansi.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class Reline::ANSI
1111
[27, 91, 70] => :ed_move_to_end, # End
1212
[27, 32] => :em_set_mark, # M-<space>
1313
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows
14+
[27, 91, 49, 59, 53, 67] => :em_next_word, # Ctrl+→
15+
[27, 91, 49, 59, 53, 68] => :ed_prev_word, # Ctrl+←
1416
}
1517

1618
@@input = STDIN

0 commit comments

Comments
 (0)