keyboard: recombine translations in include syntax
[sheet.git] / keyboard / less.eng.inc.pl
1 use utf8;
2
3 {
4 # less v418
5 title => 'Less',
6 version => '1.1',
7 description => [
8         "Default bindings of the less pager.",
9         "Clearly shows how much it's more than more.",
10 ],
11 keywords => [qw' less keys pager more options '],
12 rows => [1, 0],
13
14 mode => {
15         ''   => 'normal pager',
16         '^[' => 'escape keys (hold meta/alt)',
17         '-'  => 'flag identifiers',
18         ':'  => 'colon commands',
19 },
20
21 flag => {
22         g1 => [info   => 'Temporary message display (or related option).'],
23         g2 => [move   => 'Regular file position panning (or option).'],
24         g3 => [jump   => 'Other file position manipulation (").'],
25         g4 => [search => 'Go to matching content (").'],
26         g7 => [file   => 'Alter open file buffer (").'],
27         g8 => [misc   => 'Other commands and options.'],
28
29         arg  => ["key<arg>" => "Commands with a dot need a char argument afterwards."],
30         more => [more => "A small subset is compatible with `more`."],
31 },
32
33 def => {
34         '' => {
35                 "\e"=> ['g7 mode^[', "alt<>/meta"],
36
37                 'b' => ['g2 more', "page up"],
38                 '^b'=> \'b',
39                 'd' => ['g2 more', 'scroll down'],
40                 '^d'=> \'d',
41                 'e' => \'j',
42                 '^e'=> \'j',
43                 'f' => ['g2 more', "page down"],
44                 '^f'=> \'f',
45                 'F' => ['g7', "follow\nForward Forever"],
46                 'g' => ['g2', "(first) line"],
47                 '^g'=> \'=',
48                 'G' => ['g2', "last line"],
49                 'h' => ['g7 more', "help"],
50                 'H' => \'h',
51                 'j' => ['g2', "<down>"],
52                 'k' => ['g2', "<up>"],
53                 '^k'=> \'k',
54                 '^l'=> \'r', # more
55                 'm' => ['g3 arg', "mark pos<>ition"],
56                 '^m'=> \'j',
57                 'n' => ['g4 more', "next find"],
58                 'N' => ['g4', "prev find"],
59                 '^n'=> \'j',
60                 'p' => ['g2', "reset position\nbeginning or Percentage"],
61                 '^p'=> \'k',
62                 'q' => ['g8 more', "quit"],
63                 'Q' => \'q',
64                 'r' => ['g1', "redraw"],
65                 '^r'=> \'r',
66                 'R' => ['g1', "refresh"],
67                 's' => ['g8 arg', "save to file"],
68                 't' => ['g4', "next tag"],
69                 'T' => ['g4', "prev tag"],
70                 'u' => ['g2', 'scroll up'],
71                 '^u'=> \'u',
72                 'v' => ['g8 linkvi more', "edit"],
73                 '^v'=> \'f',
74                 'V' => ['g1', "version"],
75                 'w' => ['g2', "page up and set window"],
76                 '^x'=> ['g8 arg mode^x', "emacs aliases"],
77                 'y' => \'k',
78                 '^y'=> \'k',
79                 'z' => ['g2 more', "set page down"],
80
81                 '!' => ['g8 more', "shell command"],
82                 '|' => ['g8 arg', "pipe till mark"],
83                 ':' => ['g8 arg mode:', "com<>mand"],
84                 '/' => ['g4 arg more', "find"],
85                 '?' => ['g4 arg', "find rev."],
86                 '%' => \'p',
87                 '&' => ['g4 arg', "filter match<>es"],
88                 "'" => ['g3 arg', "goto mark"],
89                 '-' => ['g8 arg mode-', "toggle option"],
90                 '_' => ['g1 arg mode-', "show option"],
91                 '=' => ['g1 more', "file name"],
92                 '+' => ['g7', "initial cmd"],
93
94                 '(' => ['g4', "closing"],
95                 '<' => \'g',
96                 '>' => \'G',
97         },
98
99         '^[' => { # esc
100                 "\e"=> ['g7 mode', "noop"],
101                 'n' => ['g4', "any next find"],
102                 'N' => ['g4', "any prev find"],
103                 'u' => ['g1', "mark search\nUndo"],
104                 'v' => \'b',
105                 '(' => ['g2', "scroll left"],
106                 ')' => ['g2', "scroll right"],
107                 '<' => \'g',
108                 '>' => \'G',
109         },
110
111         #'^x' => {
112         #       "\e"=> 'g7 mode',
113         #       '^x' => \"'",
114         #       '^v' => \':e',
115         #},
116
117         ':' => {
118                 "\e"=> ['g7 mode', "noop"],
119                 'd' => ['g7', "drop file"],
120                 'e' => ['g7', "open file"],
121                 'f' => \'=',
122                 'n' => ['g7 more', "next file"],
123                 'p' => ['g7 more', "prev file"],
124                 'q' => \'q',
125                 'Q' => \':q',
126                 'x' => ['g7', "first file"],
127         },
128
129         '-' => {
130                 "\e"=> ['g7 mode', "noop"],
131                 'a' => ['g4', "advance find page"],
132                 'b' => ['g7 arg', "buffer space"],
133                 'B' => ['g7', "static buffer for pipes"],
134                 'c' => ['g2', "clear on scroll"],
135                 'd' => ['g8', "dumb term<>inal"],
136                 'D' => ['g8 arg ext', "dos colours"],
137                 'e' => ['g7', "exit after eof"],
138                 'E' => ['g7', "exit at eof"],
139                 'f' => ['g7', "force open"],
140                 'F' => ['g7', "exit if 1 page"],
141                 'g' => ['g4', "hilight last match"],
142                 'h' => ['g2 arg', "scroll back limit"],
143                 'i' => ['g4', "ignore lower<>c<>ase"],
144                 'I' => ['g4', "ignore case"],
145                 'j' => ['g3 arg', "top offset"],
146                 'J' => ['g1', "status column"],
147                 'k' => ['g8 arg', "key bind<>ing<>s"],
148                 'L' => ['g8', qq[ignore <span style="font-variant:small-caps">lesso<>pen</span> filter]],
149                 'm' => ['g1', "med. promp<>t tog<>gle"],
150                 'M' => ['g1', "long promp<>t tog<>gle"],
151                 'n' => ['g8', "count line num<>ber<>s"],
152                 'N' => ['g1', "show line n<>um<>ber<>s"],
153                 'o' => ['g8 arg', "stdin to log"],
154                 'O' => ['g8 arg', "log over<>wr<>ite"],
155                 'p' => ['g4 arg', "initial search"],
156                 'P' => ['g1 arg', "status line\nPrompt"],
157                 'q' => ['g8', "no info bell\nQuiet"],
158                 'Q' => ['g8', "no warn bell\nQuiet!"],
159                 'r' => ['g8', "raw chars"],
160                 'R' => ['g8', "ansi chars"],
161                 's' => ['g8', "squeeze blank lines"],
162                 'S' => ['g8', "no line wrap"],
163                 't' => ['g4 arg', "find tag"],
164                 'T' => ['g4 arg', "tags file"],
165                 'u' => ['g8', 'parse \b \r'],
166                 'U' => ['g8', 'escape \t \b \r'],
167                 'V' => \'V',
168                 'w' => ['g8', "hilight page d<>own"],
169                 'W' => ['g8', "hilight forw<>ard"],
170                 'x' => ['g8 arg', "tab stops"],
171                 'X' => ['g8', "no termcap init"],
172                 'y' => ['g2 arg', "scroll limit fw<>d"],
173                 'z' => ['g2 arg', "page size"],
174                 '"' => ['g8 arg', "shell quotes"],
175                 '~' => ['g8', "outside tildes toggle"],
176                 '#' => ['g2 arg', "col shift"],
177                 '-' => ['g8 arg', "option name"],
178                 '+' => ['g8 arg', "reset option"],
179         },
180 },
181 }