mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Support for word movement escape sequences in iTerm2
187235f88c
This commit is contained in:
parent
f36dc2b6de
commit
777d536749
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,12 @@ class Reline::ANSI
|
|||
# Del is 0x08
|
||||
# Arrow keys are the same of KDE
|
||||
|
||||
# iTerm2
|
||||
[27, 27, 91, 67] => :em_next_word, # Option+→
|
||||
[27, 27, 91, 68] => :ed_prev_word, # Option+←
|
||||
[195, 166] => :em_next_word, # Option+f
|
||||
[195, 162] => :ed_prev_word, # Option+b
|
||||
|
||||
# others
|
||||
[27, 32] => :em_set_mark, # M-<space>
|
||||
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue