unicode: customisable table configuration
[sheet.git] / mutt.inc.pl
1 use utf8;
2
3 my %common = (
4         'H' => ['pm'], # top-page
5         'j' => ['pm'], # next-entry, next-undeleted
6         'k' => ['pm'], # previous-entry, previous-undeleted
7         'L' => ['pm'], # bottom-page
8         '^l'=> ['ci'], # refresh
9         'M' => ['pm'], # middle-page
10         '^m'=> ['mi mode^m'], # select-entry, display-message
11         'n' => ['po'], # search-next
12         'q' => ['mv mode'], # exit
13         't' => ['co'], # tag-entry
14         'z' => ['pm'], # next-page
15         'Z' => ['pm'], # previous-page
16
17         '*' => ['pm'], # last-entry
18         '=' => ['pm'], # first-entry
19         ':' => ['mi'], # enter-command
20         ';' => ['mi arg'], # tag-prefix
21         '>' => ['pm'], # next-line
22         '<' => ['pm'], # previous-line
23         ']' => ['pm'], # half-down
24         '[' => ['pm'], # half-up
25         '?' => ['ci'], # help
26         '!' => ['ci arg'], # shell
27         '/' => ['po arg mode/~'], # search
28         '+/'=> ['po arg mode/~'], # search
29 );
30
31 {
32
33 '' => {
34         %common,
35
36         '@' => ['ci'], # display-address
37         '.' => ['mv'], # buffy-list #TODO
38         '|' => ['mi'], # pipe-message
39         '$' => ['co'], # sync-mailbox
40         '#' => ['co'], # break-thread
41         '&' => ['co'], # link-threads
42         '%' => ['co'], # toggle-write
43         ' ' => '^m',
44
45         'a' => ['mi'], # create-alias
46         'b' => ['mo'], # bounce-message
47         '^b'=> ['ci'],
48         '+b'=> [undef], # M <search>~b
49         'c' => ['mv'], # change-folder
50         'C' => ['mi'], # copy-message
51         '+c'=> ['mv'], # change-folder-readonly
52         '+C'=> [undef], # decode-copy
53         'd' => ['co'], # delete-message
54         'D' => ['co arg'], # delete-pattern
55         '^d'=> ['co'], # delete-thread
56         '+d'=> ['co'], # delete-subthread
57         'e' => ['co'], # edit
58         '^e'=> ['co'], # edit-type
59         '+e'=> [undef], # resend-message
60         'f' => ['mo modem'], # forward-message
61         'F' => ['co'], # flag-message
62         '^f'=> ['mi'], # forget-passphrase
63         'g' => ['mo modem'], # group-reply
64         'G' => ['mi'], # fetch-mail
65         'h' => ['me'], # display-toggle-weed
66         '^i'=> ['po'], # next-new-then-unread
67         '+^i'=> [undef], # previous-new-then-unread
68         'j' => ['pm'], # next-undeleted
69         'k' => ['pm'], # previous-undeleted
70         'J' => ['po'], # next-entry
71         'K' => ['po'], # previous-entry
72         '^k'=> ['ci'], # extract-keys
73         '+k'=> ['mo modem'], # mail-key
74         'l' => ['me'], # limit
75         'L' => ['mo modem'], # list-reply
76         '+l'=> ['ci'], # show-limit
77         'm' => ['mo modem'], # mail
78         'N' => ['co'], # toggle-new
79         '^n'=> ['po'], # next-thread
80         '+n'=> ['po'], # next-subthread
81         'o' => ['me modeo'], # sort-mailbox
82         'O' => ['me modeo'], # sort-reverse
83         'p' => ['ci'], # print-message
84         'P' => ['po'], # parent-message
85         '^p'=> ['po'], # previous-thread
86         '+p'=> ['po'], # previous-subthread
87         '+P'=> [undef], # check-traditional-pgp
88         'q' => ['mv'], # quit
89         'Q' => ['ci arg'], # query
90         'r' => ['mo modem'], # reply
91         'R' => ['mo modem'], # recall-message
92         '^r'=> ['co'], # read-thread
93         '+r'=> ['co'], # read-subthread
94         's' => ['co'], # save-message
95         '+s'=> ['co'], # decode-save
96         'T' => ['co arg'], # tag-pattern
97         '^t'=> ['co'], # untag-pattern
98         '+t'=> ['co'], # tag-thread
99         'u' => ['co'], # undelete-message
100         'U' => ['co arg'], # undelete-pattern
101         '^u'=> ['co'], # undelete-thread
102         '+u'=> ['co'], # undelete-subthread
103         'v' => ['ci'], # view-attachments
104         'V' => ['ci'], # show-version
105         '+v'=> ['me'], # collapse-thread
106         '+V'=> ['me'], # collapse-all
107         'w' => ['co arg modew'], # set-flag
108         'W' => ['co arg modew'], # clear-flag
109         'x' => ['mv'], # exit
110         'y' => ['mv'], # M <change-folder>?<toggle-mailboxes>
111 }, # index
112
113 'm' => {
114         %common,
115
116         '|' => ['co'],
117         'a' => ['mi'],
118         'A' => ['mi'],
119         'b' => ['co'],
120         'c' => ['co'],
121         'C' => ['mi'],
122         'd' => ['co'],
123         'D' => ['co'],
124         '^d'=> ['co'],
125         'e' => ['co linkvi'],
126         'E' => ['co linkvi'],
127         '^e'=> ['co'],
128         'f' => ['co'],
129         '^f'=> ['mi'],
130         '+f'=> ['co'],
131         'F' => ['co'],
132         'G' => ['ci'],
133         'h' => ['ci'],
134         'i' => ['mi'],
135         'l' => ['ci'],
136         'm' => ['co'],
137         'M' => ['co'],
138         '^m'=> ['ci'],
139         'n' => ['mi'],
140         'P' => ['mv mode'],
141         'r' => ['co'],
142         'R' => ['co'],
143         's' => ['co'],
144         'S' => ['co menumS'],
145         't' => ['co'],
146         '^t'=> ['co'],
147         'w' => ['mi'],
148         'u' => ['mi'],
149         'U' => ['co'],
150         'y' => ['mo'],
151 }, # compose
152
153 w => {
154         'D' => ['co'],
155         'd' => 'wD',
156         'N' => ['co'],
157         'n' => 'wN',
158         'O' => ['co'],
159         'o' => 'wO',
160         'r' => ['co'],
161         'R' => 'wr',
162         '*' => ['co'],
163         '!' => ['co'],
164 }, # flag
165
166 '/~' => {
167         A => [undef],
168         b => ['X arg'],
169         B => ['arg'],
170         c => ['arg'],
171         C => ['arg'],
172         d => ['arg'],
173         D => [undef],
174         e => ['arg'],
175         E => [undef],
176         f => ['arg'],
177         F => [undef],
178         g => [undef],
179         G => [undef],
180         h => ['arg'],
181         H => ['arg'],
182         i => ['arg'],
183         k => [undef],
184         L => ['arg'],
185         l => [undef],
186         m => ['arg'],
187         n => ['arg'],
188         N => [undef],
189         O => [undef],
190         p => [undef],
191         P => [undef],
192         Q => [undef],
193         r => ['arg'],
194         R => [undef],
195         s => [undef],
196         S => [undef],
197         t => ['arg'],
198         T => [undef],
199         u => [undef],
200         U => [undef],
201         v => [undef],
202         V => [undef],
203         x => ['arg'],
204         X => ['arg'],
205         y => ['arg'],
206         z => ['arg'],
207         '=' => [undef],
208         '$' => [undef],
209         '(' => ['arg'],
210 }, # search option
211
212 }