Skip to content

Commit

Permalink
Configured default key mapping with Readline when the method exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ima1zumi committed Apr 14, 2024
1 parent 6c04dac commit 6275df0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/reline/key_actor/emacs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class Reline::KeyActor::Emacs < Reline::KeyActor::Base
# 159 M-^_
:em_copy_prev_word,
# 160 M-SPACE
:ed_unassigned,
:em_set_mark,
# 161 M-!
:ed_unassigned,
# 162 M-"
Expand Down Expand Up @@ -435,7 +435,7 @@ class Reline::KeyActor::Emacs < Reline::KeyActor::Base
# 216 M-X
:ed_command,
# 217 M-Y
:ed_unassigned,
:em_yank_pop,
# 218 M-Z
:ed_unassigned,
# 219 M-[
Expand Down
8 changes: 4 additions & 4 deletions lib/reline/key_actor/vi_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Reline::KeyActor::ViCommand < Reline::KeyActor::Base
# 7 ^G
:ed_unassigned,
# 8 ^H
:ed_unassigned,
:ed_prev_char,
# 9 ^I
:ed_unassigned,
# 10 ^J
Expand All @@ -41,7 +41,7 @@ class Reline::KeyActor::ViCommand < Reline::KeyActor::Base
# 19 ^S
:ed_ignore,
# 20 ^T
:ed_unassigned,
:ed_transpose_chars,
# 21 ^U
:vi_kill_line_prev,
# 22 ^V
Expand All @@ -51,7 +51,7 @@ class Reline::KeyActor::ViCommand < Reline::KeyActor::Base
# 24 ^X
:ed_unassigned,
# 25 ^Y
:ed_unassigned,
:em_yank,
# 26 ^Z
:ed_unassigned,
# 27 ^[
Expand Down Expand Up @@ -255,7 +255,7 @@ class Reline::KeyActor::ViCommand < Reline::KeyActor::Base
# 126 ~
:vi_change_case,
# 127 ^?
:ed_unassigned,
:em_delete_prev_char,
# 128 M-^@
:ed_unassigned,
# 129 M-^A
Expand Down
4 changes: 2 additions & 2 deletions lib/reline/key_actor/vi_insert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Reline::KeyActor::ViInsert < Reline::KeyActor::Base
# 19 ^S
:vi_search_next,
# 20 ^T
:ed_insert,
:ed_transpose_chars,
# 21 ^U
:vi_kill_line_prev,
# 22 ^V
Expand All @@ -51,7 +51,7 @@ class Reline::KeyActor::ViInsert < Reline::KeyActor::Base
# 24 ^X
:ed_insert,
# 25 ^Y
:ed_insert,
:em_yank,
# 26 ^Z
:ed_insert,
# 27 ^[
Expand Down

0 comments on commit 6275df0

Please sign in to comment.