Module: Reline::KeyActor
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Defined in: | lib/reline/key_actor.rb, lib/reline/key_actor/emacs.rb, lib/reline/key_actor/vi_command.rb, lib/reline/key_actor/vi_insert.rb |
Constant Summary
-
EMACS_MAPPING =
# File 'lib/reline/key_actor/emacs.rb', line 2[ # 0 ^@ :em_set_mark, # 1 ^A :ed_move_to_beg, # 2 ^B :ed_prev_char, # 3 ^C :ed_ignore, # 4 ^D :em_delete, # 5 ^E :ed_move_to_end, # 6 ^F :ed_next_char, # 7 ^G nil, # 8 ^H :em_delete_prev_char, # 9 ^I :complete, # 10 ^J :ed_newline, # 11 ^K :ed_kill_line, # 12 ^L :ed_clear_screen, # 13 ^M :ed_newline, # 14 ^N :ed_next_history, # 15 ^O :ed_ignore, # 16 ^P :ed_prev_history, # 17 ^Q :ed_quoted_insert, # 18 ^R :vi_search_prev, # 19 ^S :vi_search_next, # 20 ^T :ed_transpose_chars, # 21 ^U :unix_line_discard, # 22 ^V :ed_quoted_insert, # 23 ^W :em_kill_region, # 24 ^X nil, # 25 ^Y :em_yank, # 26 ^Z :ed_ignore, # 27 ^[ nil, # 28 ^\ :ed_ignore, # 29 ^] :ed_ignore, # 30 ^^ nil, # 31 ^_ :undo, # 32 SPACE :ed_insert, # 33 ! :ed_insert, # 34 " :ed_insert, # 35 # :ed_insert, # 36 $ :ed_insert, # 37 % :ed_insert, # 38 & :ed_insert, # 39 ' :ed_insert, # 40 ( :ed_insert, # 41 ) :ed_insert, # 42 * :ed_insert, # 43 + :ed_insert, # 44 , :ed_insert, # 45 - :ed_insert, # 46 . :ed_insert, # 47 / :ed_insert, # 48 0 :ed_digit, # 49 1 :ed_digit, # 50 2 :ed_digit, # 51 3 :ed_digit, # 52 4 :ed_digit, # 53 5 :ed_digit, # 54 6 :ed_digit, # 55 7 :ed_digit, # 56 8 :ed_digit, # 57 9 :ed_digit, # 58 : :ed_insert, # 59 ; :ed_insert, # 60 < :ed_insert, # 61 = :ed_insert, # 62 > :ed_insert, # 63 ? :ed_insert, # 64 @ :ed_insert, # 65 A :ed_insert, # 66 B :ed_insert, # 67 C :ed_insert, # 68 D :ed_insert, # 69 E :ed_insert, # 70 F :ed_insert, # 71 G :ed_insert, # 72 H :ed_insert, # 73 I :ed_insert, # 74 J :ed_insert, # 75 K :ed_insert, # 76 L :ed_insert, # 77 M :ed_insert, # 78 N :ed_insert, # 79 O :ed_insert, # 80 P :ed_insert, # 81 Q :ed_insert, # 82 R :ed_insert, # 83 S :ed_insert, # 84 T :ed_insert, # 85 U :ed_insert, # 86 V :ed_insert, # 87 W :ed_insert, # 88 X :ed_insert, # 89 Y :ed_insert, # 90 Z :ed_insert, # 91 [ :ed_insert, # 92 \ :ed_insert, # 93 ] :ed_insert, # 94 ^ :ed_insert, # 95 _ :ed_insert, # 96 ` :ed_insert, # 97 a :ed_insert, # 98 b :ed_insert, # 99 c :ed_insert, # 100 d :ed_insert, # 101 e :ed_insert, # 102 f :ed_insert, # 103 g :ed_insert, # 104 h :ed_insert, # 105 i :ed_insert, # 106 j :ed_insert, # 107 k :ed_insert, # 108 l :ed_insert, # 109 m :ed_insert, # 110 n :ed_insert, # 111 o :ed_insert, # 112 p :ed_insert, # 113 q :ed_insert, # 114 r :ed_insert, # 115 s :ed_insert, # 116 t :ed_insert, # 117 u :ed_insert, # 118 v :ed_insert, # 119 w :ed_insert, # 120 x :ed_insert, # 121 y :ed_insert, # 122 z :ed_insert, # 123 { :ed_insert, # 124 | :ed_insert, # 125 } :ed_insert, # 126 ~ :ed_insert, # 127 ^? :em_delete_prev_char, # 128 M-^@ nil, # 129 M-^A nil, # 130 M-^B nil, # 131 M-^C nil, # 132 M-^D nil, # 133 M-^E nil, # 134 M-^F nil, # 135 M-^G nil, # 136 M-^H :ed_delete_prev_word, # 137 M-^I nil, # 138 M-^J :key_newline, # 139 M-^K nil, # 140 M-^L :ed_clear_screen, # 141 M-^M :key_newline, # 142 M-^N nil, # 143 M-^O nil, # 144 M-^P nil, # 145 M-^Q nil, # 146 M-^R nil, # 147 M-^S nil, # 148 M-^T nil, # 149 M-^U nil, # 150 M-^V nil, # 151 M-^W nil, # 152 M-^X nil, # 153 M-^Y :em_yank_pop, # 154 M-^Z nil, # 155 M-^[ nil, # 156 M-^\ nil, # 157 M-^] nil, # 158 M-^^ nil, # 159 M-^_ :redo, # 160 M-SPACE :em_set_mark, # 161 M-! nil, # 162 M-" nil, # 163 M-# nil, # 164 M-$ nil, # 165 M-% nil, # 166 M-& nil, # 167 M-' nil, # 168 M-( nil, # 169 M-) nil, # 170 M-* nil, # 171 M-+ nil, # 172 M-, nil, # 173 M-- nil, # 174 M-. nil, # 175 M-/ nil, # 176 M-0 :ed_argument_digit, # 177 M-1 :ed_argument_digit, # 178 M-2 :ed_argument_digit, # 179 M-3 :ed_argument_digit, # 180 M-4 :ed_argument_digit, # 181 M-5 :ed_argument_digit, # 182 M-6 :ed_argument_digit, # 183 M-7 :ed_argument_digit, # 184 M-8 :ed_argument_digit, # 185 M-9 :ed_argument_digit, # 186 M-: nil, # 187 M-; nil, # 188 M-< nil, # 189 M-= nil, # 190 M-> nil, # 191 M-? nil, # 192 M-@ nil, # 193 M-A nil, # 194 M-B :ed_prev_word, # 195 M-C :em_capitol_case, # 196 M-D :em_delete_next_word, # 197 M-E nil, # 198 M-F :em_next_word, # 199 M-G nil, # 200 M-H nil, # 201 M-I nil, # 202 M-J nil, # 203 M-K nil, # 204 M-L :em_lower_case, # 205 M-M nil, # 206 M-N :vi_search_next, # 207 M-O nil, # 208 M-P :vi_search_prev, # 209 M-Q nil, # 210 M-R nil, # 211 M-S nil, # 212 M-T nil, # 213 M-U :em_upper_case, # 214 M-V nil, # 215 M-W nil, # 216 M-X nil, # 217 M-Y :em_yank_pop, # 218 M-Z nil, # 219 M-[ nil, # 220 M-\ nil, # 221 M-] nil, # 222 M-^ nil, # 223 M-_ nil, # 224 M-` nil, # 225 M-a nil, # 226 M-b :ed_prev_word, # 227 M-c :em_capitol_case, # 228 M-d :em_delete_next_word, # 229 M-e nil, # 230 M-f :em_next_word, # 231 M-g nil, # 232 M-h nil, # 233 M-i nil, # 234 M-j nil, # 235 M-k nil, # 236 M-l :em_lower_case, # 237 M-m nil, # 238 M-n :vi_search_next, # 239 M-o nil, # 240 M-p :vi_search_prev, # 241 M-q nil, # 242 M-r nil, # 243 M-s nil, # 244 M-t :ed_transpose_words, # 245 M-u :em_upper_case, # 246 M-v nil, # 247 M-w nil, # 248 M-x nil, # 249 M-y nil, # 250 M-z nil, # 251 M-{ nil, # 252 M-| nil, # 253 M-} nil, # 254 M-~ nil, # 255 M-^? :ed_delete_prev_word # EOF ]
-
VI_COMMAND_MAPPING =
# File 'lib/reline/key_actor/vi_command.rb', line 2[ # 0 ^@ nil, # 1 ^A :ed_move_to_beg, # 2 ^B nil, # 3 ^C :ed_ignore, # 4 ^D :vi_end_of_transmission, # 5 ^E :ed_move_to_end, # 6 ^F nil, # 7 ^G nil, # 8 ^H :ed_prev_char, # 9 ^I nil, # 10 ^J :ed_newline, # 11 ^K :ed_kill_line, # 12 ^L :ed_clear_screen, # 13 ^M :ed_newline, # 14 ^N :ed_next_history, # 15 ^O :ed_ignore, # 16 ^P :ed_prev_history, # 17 ^Q :ed_ignore, # 18 ^R :vi_search_prev, # 19 ^S :ed_ignore, # 20 ^T :ed_transpose_chars, # 21 ^U :vi_kill_line_prev, # 22 ^V :ed_quoted_insert, # 23 ^W :ed_delete_prev_word, # 24 ^X nil, # 25 ^Y :em_yank, # 26 ^Z nil, # 27 ^[ nil, # 28 ^\ :ed_ignore, # 29 ^] nil, # 30 ^^ nil, # 31 ^_ nil, # 32 SPACE :ed_next_char, # 33 ! nil, # 34 " nil, # 35 # :vi_comment_out, # 36 $ :ed_move_to_end, # 37 % nil, # 38 & nil, # 39 ' nil, # 40 ( nil, # 41 ) nil, # 42 * nil, # 43 + :ed_next_history, # 44 , nil, # 45 - :ed_prev_history, # 46 . nil, # 47 / :vi_search_prev, # 48 0 :vi_zero, # 49 1 :ed_argument_digit, # 50 2 :ed_argument_digit, # 51 3 :ed_argument_digit, # 52 4 :ed_argument_digit, # 53 5 :ed_argument_digit, # 54 6 :ed_argument_digit, # 55 7 :ed_argument_digit, # 56 8 :ed_argument_digit, # 57 9 :ed_argument_digit, # 58 : nil, # 59 ; nil, # 60 < nil, # 61 = nil, # 62 > nil, # 63 ? :vi_search_next, # 64 @ :vi_alias, # 65 A :vi_add_at_eol, # 66 B :vi_prev_big_word, # 67 C :vi_change_to_eol, # 68 D :ed_kill_line, # 69 E :vi_end_big_word, # 70 F :vi_prev_char, # 71 G :vi_to_history_line, # 72 H nil, # 73 I :vi_insert_at_bol, # 74 J :vi_join_lines, # 75 K :vi_search_prev, # 76 L nil, # 77 M nil, # 78 N nil, # 79 O nil, # 80 P :vi_paste_prev, # 81 Q nil, # 82 R nil, # 83 S nil, # 84 T :vi_to_prev_char, # 85 U nil, # 86 V nil, # 87 W :vi_next_big_word, # 88 X :ed_delete_prev_char, # 89 Y nil, # 90 Z nil, # 91 [ nil, # 92 \ nil, # 93 ] nil, # 94 ^ :vi_first_print, # 95 _ nil, # 96 ` nil, # 97 a :vi_add, # 98 b :vi_prev_word, # 99 c :, # 100 d :, # 101 e :vi_end_word, # 102 f :vi_next_char, # 103 g nil, # 104 h :ed_prev_char, # 105 i :vi_insert, # 106 j :ed_next_history, # 107 k :ed_prev_history, # 108 l :ed_next_char, # 109 m nil, # 110 n nil, # 111 o nil, # 112 p :vi_paste_next, # 113 q nil, # 114 r :vi_replace_char, # 115 s nil, # 116 t :vi_to_next_char, # 117 u nil, # 118 v :vi_histedit, # 119 w :vi_next_word, # 120 x :ed_delete_next_char, # 121 y :vi_yank, # 122 z nil, # 123 { nil, # 124 | :vi_to_column, # 125 } nil, # 126 ~ nil, # 127 ^? :em_delete_prev_char, # 128 M-^@ nil, # 129 M-^A nil, # 130 M-^B nil, # 131 M-^C nil, # 132 M-^D nil, # 133 M-^E nil, # 134 M-^F nil, # 135 M-^G nil, # 136 M-^H nil, # 137 M-^I nil, # 138 M-^J nil, # 139 M-^K nil, # 140 M-^L nil, # 141 M-^M nil, # 142 M-^N nil, # 143 M-^O nil, # 144 M-^P nil, # 145 M-^Q nil, # 146 M-^R nil, # 147 M-^S nil, # 148 M-^T nil, # 149 M-^U nil, # 150 M-^V nil, # 151 M-^W nil, # 152 M-^X nil, # 153 M-^Y nil, # 154 M-^Z nil, # 155 M-^[ nil, # 156 M-^\ nil, # 157 M-^] nil, # 158 M-^^ nil, # 159 M-^_ nil, # 160 M-SPACE nil, # 161 M-! nil, # 162 M-" nil, # 163 M-# nil, # 164 M-$ nil, # 165 M-% nil, # 166 M-& nil, # 167 M-' nil, # 168 M-( nil, # 169 M-) nil, # 170 M-* nil, # 171 M-+ nil, # 172 M-, nil, # 173 M-- nil, # 174 M-. nil, # 175 M-/ nil, # 176 M-0 nil, # 177 M-1 nil, # 178 M-2 nil, # 179 M-3 nil, # 180 M-4 nil, # 181 M-5 nil, # 182 M-6 nil, # 183 M-7 nil, # 184 M-8 nil, # 185 M-9 nil, # 186 M-: nil, # 187 M-; nil, # 188 M-< nil, # 189 M-= nil, # 190 M-> nil, # 191 M-? nil, # 192 M-@ nil, # 193 M-A nil, # 194 M-B nil, # 195 M-C nil, # 196 M-D nil, # 197 M-E nil, # 198 M-F nil, # 199 M-G nil, # 200 M-H nil, # 201 M-I nil, # 202 M-J nil, # 203 M-K nil, # 204 M-L nil, # 205 M-M nil, # 206 M-N nil, # 207 M-O nil, # 208 M-P nil, # 209 M-Q nil, # 210 M-R nil, # 211 M-S nil, # 212 M-T nil, # 213 M-U nil, # 214 M-V nil, # 215 M-W nil, # 216 M-X nil, # 217 M-Y nil, # 218 M-Z nil, # 219 M-[ nil, # 220 M-\ nil, # 221 M-] nil, # 222 M-^ nil, # 223 M-_ nil, # 224 M-` nil, # 225 M-a nil, # 226 M-b nil, # 227 M-c nil, # 228 M-d nil, # 229 M-e nil, # 230 M-f nil, # 231 M-g nil, # 232 M-h nil, # 233 M-i nil, # 234 M-j nil, # 235 M-k nil, # 236 M-l nil, # 237 M-m nil, # 238 M-n nil, # 239 M-o nil, # 240 M-p nil, # 241 M-q nil, # 242 M-r nil, # 243 M-s nil, # 244 M-t nil, # 245 M-u nil, # 246 M-v nil, # 247 M-w nil, # 248 M-x nil, # 249 M-y nil, # 250 M-z nil, # 251 M-{ nil, # 252 M-| nil, # 253 M-} nil, # 254 M-~ nil, # 255 M-^? nil # EOF ]
-
VI_INSERT_MAPPING =
# File 'lib/reline/key_actor/vi_insert.rb', line 2[ # 0 ^@ nil, # 1 ^A :ed_insert, # 2 ^B :ed_insert, # 3 ^C :ed_insert, # 4 ^D :vi_list_or_eof, # 5 ^E :ed_insert, # 6 ^F :ed_insert, # 7 ^G :ed_insert, # 8 ^H :vi_delete_prev_char, # 9 ^I :complete, # 10 ^J :ed_newline, # 11 ^K :ed_insert, # 12 ^L :ed_insert, # 13 ^M :ed_newline, # 14 ^N :, # 15 ^O :ed_insert, # 16 ^P :, # 17 ^Q :ed_ignore, # 18 ^R :vi_search_prev, # 19 ^S :vi_search_next, # 20 ^T :ed_transpose_chars, # 21 ^U :vi_kill_line_prev, # 22 ^V :ed_quoted_insert, # 23 ^W :ed_delete_prev_word, # 24 ^X :ed_insert, # 25 ^Y :em_yank, # 26 ^Z :ed_insert, # 27 ^[ :vi_command_mode, # 28 ^\ :ed_ignore, # 29 ^] :ed_insert, # 30 ^^ :ed_insert, # 31 ^_ :ed_insert, # 32 SPACE :ed_insert, # 33 ! :ed_insert, # 34 " :ed_insert, # 35 # :ed_insert, # 36 $ :ed_insert, # 37 % :ed_insert, # 38 & :ed_insert, # 39 ' :ed_insert, # 40 ( :ed_insert, # 41 ) :ed_insert, # 42 * :ed_insert, # 43 + :ed_insert, # 44 , :ed_insert, # 45 - :ed_insert, # 46 . :ed_insert, # 47 / :ed_insert, # 48 0 :ed_digit, # 49 1 :ed_digit, # 50 2 :ed_digit, # 51 3 :ed_digit, # 52 4 :ed_digit, # 53 5 :ed_digit, # 54 6 :ed_digit, # 55 7 :ed_digit, # 56 8 :ed_digit, # 57 9 :ed_digit, # 58 : :ed_insert, # 59 ; :ed_insert, # 60 < :ed_insert, # 61 = :ed_insert, # 62 > :ed_insert, # 63 ? :ed_insert, # 64 @ :ed_insert, # 65 A :ed_insert, # 66 B :ed_insert, # 67 C :ed_insert, # 68 D :ed_insert, # 69 E :ed_insert, # 70 F :ed_insert, # 71 G :ed_insert, # 72 H :ed_insert, # 73 I :ed_insert, # 74 J :ed_insert, # 75 K :ed_insert, # 76 L :ed_insert, # 77 M :ed_insert, # 78 N :ed_insert, # 79 O :ed_insert, # 80 P :ed_insert, # 81 Q :ed_insert, # 82 R :ed_insert, # 83 S :ed_insert, # 84 T :ed_insert, # 85 U :ed_insert, # 86 V :ed_insert, # 87 W :ed_insert, # 88 X :ed_insert, # 89 Y :ed_insert, # 90 Z :ed_insert, # 91 [ :ed_insert, # 92 \ :ed_insert, # 93 ] :ed_insert, # 94 ^ :ed_insert, # 95 _ :ed_insert, # 96 ` :ed_insert, # 97 a :ed_insert, # 98 b :ed_insert, # 99 c :ed_insert, # 100 d :ed_insert, # 101 e :ed_insert, # 102 f :ed_insert, # 103 g :ed_insert, # 104 h :ed_insert, # 105 i :ed_insert, # 106 j :ed_insert, # 107 k :ed_insert, # 108 l :ed_insert, # 109 m :ed_insert, # 110 n :ed_insert, # 111 o :ed_insert, # 112 p :ed_insert, # 113 q :ed_insert, # 114 r :ed_insert, # 115 s :ed_insert, # 116 t :ed_insert, # 117 u :ed_insert, # 118 v :ed_insert, # 119 w :ed_insert, # 120 x :ed_insert, # 121 y :ed_insert, # 122 z :ed_insert, # 123 { :ed_insert, # 124 | :ed_insert, # 125 } :ed_insert, # 126 ~ :ed_insert, # 127 ^? :vi_delete_prev_char, # 128 M-^@ nil, # 129 M-^A nil, # 130 M-^B nil, # 131 M-^C nil, # 132 M-^D nil, # 133 M-^E nil, # 134 M-^F nil, # 135 M-^G nil, # 136 M-^H nil, # 137 M-^I nil, # 138 M-^J :key_newline, # 139 M-^K nil, # 140 M-^L nil, # 141 M-^M :key_newline, # 142 M-^N nil, # 143 M-^O nil, # 144 M-^P nil, # 145 M-^Q nil, # 146 M-^R nil, # 147 M-^S nil, # 148 M-^T nil, # 149 M-^U nil, # 150 M-^V nil, # 151 M-^W nil, # 152 M-^X nil, # 153 M-^Y nil, # 154 M-^Z nil, # 155 M-^[ nil, # 156 M-^\ nil, # 157 M-^] nil, # 158 M-^^ nil, # 159 M-^_ nil, # 160 M-SPACE nil, # 161 M-! nil, # 162 M-" nil, # 163 M-# nil, # 164 M-$ nil, # 165 M-% nil, # 166 M-& nil, # 167 M-' nil, # 168 M-( nil, # 169 M-) nil, # 170 M-* nil, # 171 M-+ nil, # 172 M-, nil, # 173 M-- nil, # 174 M-. nil, # 175 M-/ nil, # 176 M-0 nil, # 177 M-1 nil, # 178 M-2 nil, # 179 M-3 nil, # 180 M-4 nil, # 181 M-5 nil, # 182 M-6 nil, # 183 M-7 nil, # 184 M-8 nil, # 185 M-9 nil, # 186 M-: nil, # 187 M-; nil, # 188 M-< nil, # 189 M-= nil, # 190 M-> nil, # 191 M-? nil, # 192 M-@ nil, # 193 M-A nil, # 194 M-B nil, # 195 M-C nil, # 196 M-D nil, # 197 M-E nil, # 198 M-F nil, # 199 M-G nil, # 200 M-H nil, # 201 M-I nil, # 202 M-J nil, # 203 M-K nil, # 204 M-L nil, # 205 M-M nil, # 206 M-N nil, # 207 M-O nil, # 208 M-P nil, # 209 M-Q nil, # 210 M-R nil, # 211 M-S nil, # 212 M-T nil, # 213 M-U nil, # 214 M-V nil, # 215 M-W nil, # 216 M-X nil, # 217 M-Y nil, # 218 M-Z nil, # 219 M-[ nil, # 220 M-\ nil, # 221 M-] nil, # 222 M-^ nil, # 223 M-_ nil, # 224 M-` nil, # 225 M-a nil, # 226 M-b nil, # 227 M-c nil, # 228 M-d nil, # 229 M-e nil, # 230 M-f nil, # 231 M-g nil, # 232 M-h nil, # 233 M-i nil, # 234 M-j nil, # 235 M-k nil, # 236 M-l nil, # 237 M-m nil, # 238 M-n nil, # 239 M-o nil, # 240 M-p nil, # 241 M-q nil, # 242 M-r nil, # 243 M-s nil, # 244 M-t nil, # 245 M-u nil, # 246 M-v nil, # 247 M-w nil, # 248 M-x nil, # 249 M-y nil, # 250 M-z nil, # 251 M-{ nil, # 252 M-| nil, # 253 M-} nil, # 254 M-~ nil, # 255 M-^? nil # EOF ]