keys: invert background letter colour in dark style
[sheet.git] / readline.eng.inc.pl
1 use utf8;
2
3 {
4 key => {
5         '+<' => "history start",
6         '+>' => "history end",
7         '+?' => "list complet<>ion<>s",
8         '^@' => "set mark",
9
10         '+#' => "prefix comm<>en<>t",
11         '+&' => "tilde expand",
12         '+*' => "complet<>e all",
13         '+.' => "insert last",
14
15         '^[' => "meta",
16         '+\\'=> "delete whitesp<>ace",
17         '^]' => "find char",
18         '^+]'=> "rev find char",
19         '^_' => "undo",
20
21         '+~' => "user<>name exp<>and",
22         '+!' => "cmd expand",
23         '+@' => "host<>name exp<>and",
24         '+$' => "variable expand",
25         '+^' => "history expand",
26         '+/' => "filename expand",
27
28         '^a' => "begin of line",
29         '^b' => "char back<>w<>ard<>s",
30         '+b' => "word back<>w<>ard<>s",
31         '^c' => "cancel comm<>and",
32         '+c' => "capital<>ise word",
33         '^d' => "delete char",
34         '+d' => "delete word rem<>ain<>der",
35 #       '^e' => "emacs mode",
36         '^e' => "end of line",
37         '^f' => "char forward",
38         '+f' => "word forward",
39         '^g' => "abort cmd, bell",
40         '^h' => "back<>space",
41         '^+h'=> "delete bound word",
42         '^i' => "auto<>complet<>e\n(tab)",
43         '^+j'=> "vim mode",
44         '^k' => "delete till eol",
45         '^l' => "clear screen",
46         '+l' => "lowcase word",
47         '^m' => "enter line\n(enter)",
48         '^n' => "history next",
49         '+n' => "match history",
50         '^o' => "enter and next",
51         '^p' => "history back",
52         '+p' => "rev match history",
53 #       '^q' => "\nQuote",  #TODO fix partial override
54         '^r' => "reverse history",
55         '+r' => "full undo\nRevert",
56         '^s' => "search history",
57         '^t' => "move char forw<>ard\nTranspose char",
58         '+t' => "move word forw<>ard\nTranspose word",
59         '^u' => "delete till bol", # unix
60         '+u' => "upcase word",
61         '^v' => "verbat<>im char",
62         '^w' => "delete word", # unix
63         '^x' => "extend<>ed",
64         '^y' => "yank top",
65         '+y' => "rotate yank",
66         '^+y'=> "yank arg",
67         '^z' => "back<>ground",
68
69         '^x('  => "start macro",
70         '^x)'  => "end macro",
71         '^xe'  => "run macro\nExecute",
72         '^x^e' => "editor",
73         '^x^r' => "reload inputrc",
74         '^x^x' => "swap cursor\neXchange",
75         '^x^v' => "shell version",
76
77         # globally label escape as meta key
78           "\e" => "+",
79         "^x\e" => "+",
80 },
81
82 mode => {
83         ''   => "emacs mode",
84         '^x' => "emacs ctrl-x bindings",
85 },
86
87 flag => {
88         g1 => [info    => "Info command: shows/does something without altering anything."],
89         g2 => [motion  => "Move the cursor."],
90         g4 => [history => "Replace contents involving kill ring, undo, or command history."],
91         g6 => [change  => "Alter current text (filtering or completion)."],
92         g7 => [delete  => "Remove text."],
93         g8 => [misc    => "Miscellaneous commands."],
94         g9 => [mode    => "Additional key functionality (click to view)."],
95
96         arg => ["key<arg>" => "Commands with a dot need a char argument afterwards."],
97         new => ["&gt;v2.0" => "Unavailable before readline version 2.1 (1997)."],
98         ext => ["bash" => "Default assignment in Bash shells, but not common readline."],
99 },
100
101 def => {
102         '' => {
103                 "\e" => 'g8',
104
105                 '+<' => 'g4',
106                 '+=' => '=+?', #TODO: new # emacs, not in v2.0
107                 '+>' => 'g4',
108                 '^?' => '=^h',
109                 '+?' => 'g1',
110                 '^@' => 'g8 new', # not in v2.0
111
112                 '+#' => 'g6 new', # not in v2.0
113                 '+&' => 'g6',
114                 '+*' => 'g6 new', # not in v2.0
115                 '+.' => 'g4',
116                 '+~' => '=+&amp;', # emacs
117
118                 '^[' => 'g8',
119                 '^+['=> '=^i',
120                 '+\\'=> 'g7',
121                 '^]' => 'g2 arg new', # not in v2.0
122                 '^+]'=> 'g2 arg new', # not in v2.0
123                 '^_' => 'g4',
124                 '+_' => '=+.',
125
126                 '+~' => 'g6 ext', # common emacs => '=+&'
127                 '+!' => 'g6 ext',
128                 '+@' => 'g6 ext',
129                 '+$' => 'g6 ext',
130                 '+^' => 'g4 ext',
131                 '+/' => 'g1 ext',
132
133                 '^a' => 'g2',
134                 '^b' => 'g2',
135                 '+b' => 'g2',
136                 '^c' => 'g8 ext',
137                 '+c' => 'g6',
138                 '^d' => 'g7',
139                 '+d' => 'g7 ring',
140         #       '^e' => 'g9',
141                 '^e' => 'g2',
142                 '^f' => 'g2',
143                 '+f' => 'g2',
144                 '^g' => 'g8',
145                 '^+g'=> '=^g',
146                 '^h' => 'g7',
147                 '^+h'=> 'g7 ring', #TODO
148                 '^i' => 'g6',
149                 '^+i'=> '=^v^i',
150                 '^j' => '=^m',
151                 '^+j'=> 'g9', #TODO: mode^+j
152                 '^k' => 'g7 ring',
153                 '^l' => 'g1',
154                 '+l' => 'g6',
155                 '^m' => 'g4',
156                 '^+m'=> '=^+j',
157                 '^n' => 'g4',
158                 '+n' => 'g4',
159                 '^o' => 'g4 ext',
160                 '^p' => 'g4',
161                 '+p' => 'g4',
162                 '^q' => '=^v',
163                 '^r' => 'g4',
164                 '+r' => 'g4',
165                 '^+r'=> '=+r',
166                 '^s' => 'g4',
167                 '^t' => 'g6',
168                 '+t' => 'g6',
169                 '^u' => 'g7 ring',
170                 '+u' => 'g6',
171                 '^v' => 'g8',
172                 '^w' => 'g7 ring',
173                 '^x' => 'g9 arg mode^x',
174                 '^y' => 'g4',
175                 '+y' => 'g4 ring',
176                 '^+y'=> "yank arg",
177                 '^z' => 'g8 ext',
178         },
179
180         '^x' => {
181                 lead => "x̂",
182
183                 "\e" => 'g8 mode',
184
185                 '('  => 'g8',
186                 ')'  => 'g8',
187                 'e'  => 'g8',
188                 '^e' => 'g6 ext linkvi',
189                 '^g' => '=^g',
190                 '^h' => '=^u',
191                 '^r' => 'g8',
192                 '^u' => '=^_',
193                 '^x' => 'g2 new', # not in v2.0
194                 '^v' => 'g1 ext',
195                 '^?' => '=^x^h',
196         },
197 },
198 }