]> git.llucax.com Git - software/mutt-debian.git/blob - functions.h
staging the nntp patch which is not applying cleanly at the moment
[software/mutt-debian.git] / functions.h
1 /*
2  * Copyright (C) 1996-2000,2002 Michael R. Elkins <me@mutt.org>
3  * 
4  *     This program is free software; you can redistribute it and/or modify
5  *     it under the terms of the GNU General Public License as published by
6  *     the Free Software Foundation; either version 2 of the License, or
7  *     (at your option) any later version.
8  * 
9  *     This program is distributed in the hope that it will be useful,
10  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *     GNU General Public License for more details.
13  * 
14  *     You should have received a copy of the GNU General Public License
15  *     along with this program; if not, write to the Free Software
16  *     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */ 
18
19 /*
20  * This file contains the structures needed to parse ``bind'' commands, as
21  * well as the default bindings for each menu.
22  *
23  * Notes:
24  *
25  * - If you want to bind \n or \r, use M_ENTER_S so that it will work
26  * correctly under both ncurses and S-Lang
27  *
28  * - If you need to bind a control char, use the octal value because the \cX
29  * construct does not work at this level.
30  *
31  * - The magic "map:" comments define how the map will be called in the
32  * manual. Lines starting with "**" will be included in the manual.
33  *
34  */
35
36 #ifdef _MAKEDOC
37 # include "config.h"
38 # include "doc/makedoc-defs.h"
39 #endif
40
41 struct binding_t OpGeneric[] = { /* map: generic */
42   /*
43   ** <para>
44   ** The <emphasis>generic</emphasis> menu is not a real menu, but specifies common functions
45   ** (such as movement) available in all menus except for <emphasis>pager</emphasis> and
46   ** <emphasis>editor</emphasis>.  Changing settings for this menu will affect the default
47   ** bindings for all menus (except as noted).
48   ** </para>
49   */
50   { "top-page",         OP_TOP_PAGE,            "H" },
51   { "next-entry",       OP_NEXT_ENTRY,          "j" },
52   { "previous-entry",   OP_PREV_ENTRY,          "k" },
53   { "bottom-page",      OP_BOTTOM_PAGE,         "L" },
54   { "refresh",          OP_REDRAW,              "\014" },
55   { "middle-page",      OP_MIDDLE_PAGE,         "M" },
56   { "search-next",      OP_SEARCH_NEXT,         "n" },
57   { "exit",             OP_EXIT,                "q" },
58   { "tag-entry",        OP_TAG,                 "t" },
59   { "next-page",        OP_NEXT_PAGE,           "z" },
60   { "previous-page",    OP_PREV_PAGE,           "Z" },
61   { "last-entry",       OP_LAST_ENTRY,          "*" },
62   { "first-entry",      OP_FIRST_ENTRY,         "=" },
63   { "enter-command",    OP_ENTER_COMMAND,       ":" },
64   { "next-line",        OP_NEXT_LINE,           ">" },
65   { "previous-line",    OP_PREV_LINE,           "<" },
66   { "half-up",          OP_HALF_UP,             "[" },
67   { "half-down",        OP_HALF_DOWN,           "]" },
68   { "help",             OP_HELP,                "?" },
69   { "tag-prefix",       OP_TAG_PREFIX,          ";" },
70   { "tag-prefix-cond",  OP_TAG_PREFIX_COND,     NULL },
71   { "end-cond",         OP_END_COND,            NULL },
72   { "shell-escape",     OP_SHELL_ESCAPE,        "!" },
73   { "select-entry",     OP_GENERIC_SELECT_ENTRY,M_ENTER_S },
74   { "search",           OP_SEARCH,              "/" },
75   { "search-reverse",   OP_SEARCH_REVERSE,      "\033/" },
76   { "search-opposite",  OP_SEARCH_OPPOSITE,     NULL },
77   { "jump",             OP_JUMP,                NULL },
78   { "current-top",      OP_CURRENT_TOP,         NULL },
79   { "current-middle",   OP_CURRENT_MIDDLE,      NULL },
80   { "current-bottom",   OP_CURRENT_BOTTOM,      NULL },
81   { "what-key",         OP_WHAT_KEY,            NULL },
82   { NULL,               0,                      NULL }
83 };
84
85 struct binding_t OpMain[] = { /* map: index */
86   { "create-alias",             OP_CREATE_ALIAS,                "a" },
87   { "bounce-message",           OP_BOUNCE_MESSAGE,              "b" },
88   { "break-thread",             OP_MAIN_BREAK_THREAD,           "#" },
89   { "change-folder",            OP_MAIN_CHANGE_FOLDER,          "c" },
90   { "change-folder-readonly",   OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
91   { "next-unread-mailbox",      OP_MAIN_NEXT_UNREAD_MAILBOX,    NULL },
92   { "collapse-thread",          OP_MAIN_COLLAPSE_THREAD,        "\033v" },
93   { "collapse-all",             OP_MAIN_COLLAPSE_ALL,           "\033V" },
94   { "copy-message",             OP_COPY_MESSAGE,                "C" },
95   { "decode-copy",              OP_DECODE_COPY,                 "\033C" },
96   { "decode-save",              OP_DECODE_SAVE,                 "\033s" },
97   { "delete-message",           OP_DELETE,                      "d" },
98   { "delete-pattern",           OP_MAIN_DELETE_PATTERN,         "D" },
99   { "delete-thread",            OP_DELETE_THREAD,               "\004" },
100   { "delete-subthread",         OP_DELETE_SUBTHREAD,            "\033d" },
101   { "edit",                     OP_EDIT_MESSAGE,                "e" },
102   { "edit-type",                OP_EDIT_TYPE,                   "\005" },
103   { "forward-message",          OP_FORWARD_MESSAGE,             "f" },
104   { "flag-message",             OP_FLAG_MESSAGE,                "F" },
105   { "group-reply",              OP_GROUP_REPLY,                 "g" },
106 #ifdef USE_POP
107   { "fetch-mail",               OP_MAIN_FETCH_MAIL,             "G" },
108 #endif
109 #ifdef USE_IMAP
110   { "imap-fetch-mail",          OP_MAIN_IMAP_FETCH,             NULL },
111 #endif
112   { "display-toggle-weed",              OP_DISPLAY_HEADERS,             "h" },
113   { "next-undeleted",           OP_MAIN_NEXT_UNDELETED,         "j" },
114   { "previous-undeleted",       OP_MAIN_PREV_UNDELETED,         "k" },
115   { "limit",                    OP_MAIN_LIMIT,                  "l" },
116   { "link-threads",             OP_MAIN_LINK_THREADS,           "&" },
117   { "list-reply",               OP_LIST_REPLY,                  "L" },
118   { "mail",                     OP_MAIL,                        "m" },
119   { "toggle-new",               OP_TOGGLE_NEW,                  "N" },
120   { "toggle-write",             OP_TOGGLE_WRITE,                "%" },
121   { "next-thread",              OP_MAIN_NEXT_THREAD,            "\016" },
122   { "next-subthread",           OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
123   { "query",                    OP_QUERY,                       "Q" },
124   { "quit",                     OP_QUIT,                        "q" },
125   { "reply",                    OP_REPLY,                       "r" },
126   { "show-limit",               OP_MAIN_SHOW_LIMIT,             "\033l" },
127   { "sort-mailbox",             OP_SORT,                        "o" },
128   { "sort-reverse",             OP_SORT_REVERSE,                "O" },
129   { "print-message",            OP_PRINT,                       "p" },
130   { "previous-thread",          OP_MAIN_PREV_THREAD,            "\020" },
131   { "previous-subthread",       OP_MAIN_PREV_SUBTHREAD,         "\033p" },
132   { "recall-message",           OP_RECALL_MESSAGE,              "R" },
133   { "read-thread",              OP_MAIN_READ_THREAD,            "\022" },
134   { "read-subthread",           OP_MAIN_READ_SUBTHREAD,         "\033r" },
135   { "resend-message",           OP_RESEND,                      "\033e" },
136   { "save-message",             OP_SAVE,                        "s" },
137   { "tag-pattern",              OP_MAIN_TAG_PATTERN,            "T" },
138   { "tag-subthread",            OP_TAG_SUBTHREAD,               NULL },
139   { "tag-thread",               OP_TAG_THREAD,                  "\033t" },
140   { "untag-pattern",            OP_MAIN_UNTAG_PATTERN,          "\024" },
141   { "undelete-message",         OP_UNDELETE,                    "u" },
142   { "undelete-pattern",         OP_MAIN_UNDELETE_PATTERN,       "U"},
143   { "undelete-subthread",       OP_UNDELETE_SUBTHREAD,          "\033u" },
144   { "undelete-thread",          OP_UNDELETE_THREAD,             "\025" },
145   { "view-attachments",         OP_VIEW_ATTACHMENTS,            "v" },
146   { "show-version",             OP_VERSION,                     "V" },
147   { "set-flag",                 OP_MAIN_SET_FLAG,               "w" },
148   { "clear-flag",               OP_MAIN_CLEAR_FLAG,             "W" },
149   { "display-message",          OP_DISPLAY_MESSAGE,             M_ENTER_S },
150   { "buffy-list",               OP_BUFFY_LIST,                  "." },
151   { "sync-mailbox",             OP_MAIN_SYNC_FOLDER,            "$" },
152   { "display-address",          OP_DISPLAY_ADDRESS,             "@" },
153   { "pipe-message",             OP_PIPE,                        "|" },
154   { "next-new",                 OP_MAIN_NEXT_NEW,               NULL },
155   { "next-new-then-unread",     OP_MAIN_NEXT_NEW_THEN_UNREAD,   "\t" },
156   { "previous-new",             OP_MAIN_PREV_NEW,               NULL },
157   { "previous-new-then-unread", OP_MAIN_PREV_NEW_THEN_UNREAD,   "\033\t" },
158   { "next-unread",              OP_MAIN_NEXT_UNREAD,            NULL },
159   { "previous-unread",          OP_MAIN_PREV_UNREAD,            NULL },
160   { "parent-message",           OP_MAIN_PARENT_MESSAGE,         "P" },
161
162
163   { "extract-keys",             OP_EXTRACT_KEYS,                "\013" },
164   { "forget-passphrase",        OP_FORGET_PASSPHRASE,           "\006" },
165   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,           "\033P" },
166   { "mail-key",                 OP_MAIL_KEY,                    "\033k" },
167   { "decrypt-copy",             OP_DECRYPT_COPY,                NULL },
168   { "decrypt-save",             OP_DECRYPT_SAVE,                NULL },
169
170
171   { NULL,                       0,                              NULL }
172 };
173
174 struct binding_t OpPager[] = { /* map: pager */
175   { "break-thread",     OP_MAIN_BREAK_THREAD,           "#" },
176   { "create-alias",     OP_CREATE_ALIAS,                "a" },
177   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
178   { "change-folder",    OP_MAIN_CHANGE_FOLDER,          "c" },
179   { "change-folder-readonly",   OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
180   { "next-unread-mailbox",      OP_MAIN_NEXT_UNREAD_MAILBOX, NULL },
181   { "copy-message",     OP_COPY_MESSAGE,                "C" },
182   { "decode-copy",      OP_DECODE_COPY,                 "\033C" },
183   { "delete-message",   OP_DELETE,                      "d" },
184   { "delete-thread",    OP_DELETE_THREAD,               "\004" },
185   { "delete-subthread", OP_DELETE_SUBTHREAD,            "\033d" },
186   { "set-flag",         OP_MAIN_SET_FLAG,               "w" },
187   { "clear-flag",       OP_MAIN_CLEAR_FLAG,             "W" },
188   { "edit",             OP_EDIT_MESSAGE,                "e" },
189   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
190   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
191   { "flag-message",     OP_FLAG_MESSAGE,                "F" },
192   { "group-reply",      OP_GROUP_REPLY,                 "g" },
193 #ifdef USE_IMAP
194   { "imap-fetch-mail",  OP_MAIN_IMAP_FETCH,             NULL },
195 #endif
196   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
197   { "next-undeleted",   OP_MAIN_NEXT_UNDELETED,         "j" },
198   { "next-entry",       OP_NEXT_ENTRY,                  "J" },
199   { "previous-undeleted",OP_MAIN_PREV_UNDELETED,        "k" },
200   { "previous-entry",   OP_PREV_ENTRY,                  "K" },
201   { "link-threads",     OP_MAIN_LINK_THREADS,           "&" },
202   { "list-reply",       OP_LIST_REPLY,                  "L" },
203   { "redraw-screen",    OP_REDRAW,                      "\014" },
204   { "mail",             OP_MAIL,                        "m" },
205   { "mark-as-new",      OP_TOGGLE_NEW,                  "N" },
206   { "search-next",      OP_SEARCH_NEXT,                 "n" },
207   { "next-thread",      OP_MAIN_NEXT_THREAD,            "\016" },
208   { "next-subthread",   OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
209   { "print-message",    OP_PRINT,                       "p" },
210   { "previous-thread",  OP_MAIN_PREV_THREAD,            "\020" },
211   { "previous-subthread",OP_MAIN_PREV_SUBTHREAD,        "\033p" },
212   { "quit",             OP_QUIT,                        "Q" },
213   { "exit",             OP_EXIT,                        "q" },
214   { "reply",            OP_REPLY,                       "r" },
215   { "recall-message",   OP_RECALL_MESSAGE,              "R" },
216   { "read-thread",      OP_MAIN_READ_THREAD,            "\022" },
217   { "read-subthread",   OP_MAIN_READ_SUBTHREAD,         "\033r" },
218   { "resend-message",   OP_RESEND,                      "\033e" },
219   { "save-message",     OP_SAVE,                        "s" },
220   { "skip-quoted",      OP_PAGER_SKIP_QUOTED,           "S" },
221   { "decode-save",      OP_DECODE_SAVE,                 "\033s" },
222   { "tag-message",      OP_TAG,                         "t" },
223   { "toggle-quoted",    OP_PAGER_HIDE_QUOTED,           "T" },
224   { "undelete-message", OP_UNDELETE,                    "u" },
225   { "undelete-subthread",OP_UNDELETE_SUBTHREAD,         "\033u" },
226   { "undelete-thread",  OP_UNDELETE_THREAD,             "\025" },
227   { "view-attachments", OP_VIEW_ATTACHMENTS,            "v" },
228   { "show-version",     OP_VERSION,                     "V" },
229   { "search-toggle",    OP_SEARCH_TOGGLE,               "\\" },
230   { "display-address",  OP_DISPLAY_ADDRESS,             "@" },
231   { "next-new",         OP_MAIN_NEXT_NEW,               NULL },
232   { "next-new-then-unread", 
233                         OP_MAIN_NEXT_NEW_THEN_UNREAD,   "\t" },
234   { "pipe-message",     OP_PIPE,                        "|" },
235   { "help",             OP_HELP,                        "?" },
236   { "next-page",        OP_NEXT_PAGE,                   " " },
237   { "previous-page",    OP_PREV_PAGE,                   "-" },
238   { "top",              OP_PAGER_TOP,                   "^" },
239   { "sync-mailbox",     OP_MAIN_SYNC_FOLDER,            "$" },
240   { "shell-escape",     OP_SHELL_ESCAPE,                "!" },
241   { "enter-command",    OP_ENTER_COMMAND,               ":" },
242   { "buffy-list",       OP_BUFFY_LIST,                  "." },
243   { "search",           OP_SEARCH,                      "/" },
244   { "search-reverse",   OP_SEARCH_REVERSE,              "\033/" },
245   { "search-opposite",  OP_SEARCH_OPPOSITE,             NULL },
246   { "next-line",        OP_NEXT_LINE,                   M_ENTER_S },
247   { "jump",             OP_JUMP,                        NULL },
248   { "next-unread",      OP_MAIN_NEXT_UNREAD,            NULL },
249   { "previous-new",     OP_MAIN_PREV_NEW,               NULL },
250   { "previous-new-then-unread",
251                         OP_MAIN_PREV_NEW_THEN_UNREAD,   NULL },
252   { "previous-unread",  OP_MAIN_PREV_UNREAD,            NULL },
253   { "half-up",          OP_HALF_UP,                     NULL },
254   { "half-down",        OP_HALF_DOWN,                   NULL },
255   { "previous-line",    OP_PREV_LINE,                   NULL },
256   { "bottom",           OP_PAGER_BOTTOM,                NULL },
257   { "parent-message",   OP_MAIN_PARENT_MESSAGE,         "P" },
258
259
260
261
262   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,   "\033P"   },
263   { "mail-key",         OP_MAIL_KEY,                    "\033k" },
264   { "extract-keys",     OP_EXTRACT_KEYS,                "\013" },
265   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006" },
266   { "decrypt-copy",     OP_DECRYPT_COPY,                NULL },
267   { "decrypt-save",     OP_DECRYPT_SAVE,                NULL },
268
269   { "what-key",         OP_WHAT_KEY,            NULL },
270
271   { NULL,               0,                              NULL }
272 };
273
274 struct binding_t OpAttach[] = { /* map: attach */
275   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
276   { "display-toggle-weed",      OP_DISPLAY_HEADERS,     "h" },
277   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
278   { "print-entry",      OP_PRINT,                       "p" },
279   { "save-entry",       OP_SAVE,                        "s" },
280   { "pipe-entry",       OP_PIPE,                        "|" },
281   { "view-mailcap",     OP_ATTACH_VIEW_MAILCAP,         "m" },
282   { "reply",            OP_REPLY,                       "r" },
283   { "resend-message",   OP_RESEND,                      "\033e" },
284   { "group-reply",      OP_GROUP_REPLY,                 "g" },
285   { "list-reply",       OP_LIST_REPLY,                  "L" },
286   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
287   { "view-text",        OP_ATTACH_VIEW_TEXT,            "T" },
288   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
289   { "delete-entry",     OP_DELETE,                      "d" },
290   { "undelete-entry",   OP_UNDELETE,                    "u" },
291   { "collapse-parts",   OP_ATTACH_COLLAPSE,             "v" },
292
293   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,           "\033P"   },
294   { "extract-keys",             OP_EXTRACT_KEYS,                "\013" },
295   { "forget-passphrase",        OP_FORGET_PASSPHRASE,           "\006" },
296
297   { NULL,               0,                              NULL }
298 };
299
300 struct binding_t OpCompose[] = { /* map: compose */
301   { "attach-file",      OP_COMPOSE_ATTACH_FILE,         "a" },
302   { "attach-message",   OP_COMPOSE_ATTACH_MESSAGE,      "A" },
303   { "edit-bcc",         OP_COMPOSE_EDIT_BCC,            "b" },
304   { "edit-cc",          OP_COMPOSE_EDIT_CC,             "c" },
305   { "copy-file",        OP_SAVE,                        "C" },
306   { "detach-file",      OP_DELETE,                      "D" },
307   { "toggle-disposition",OP_COMPOSE_TOGGLE_DISPOSITION, "\004" },
308   { "edit-description", OP_COMPOSE_EDIT_DESCRIPTION,    "d" },
309   { "edit-message",     OP_COMPOSE_EDIT_MESSAGE,        "e" },
310   { "edit-headers",     OP_COMPOSE_EDIT_HEADERS,        "E" },
311   { "edit-file",        OP_COMPOSE_EDIT_FILE,           "\030e" },
312   { "edit-encoding",    OP_COMPOSE_EDIT_ENCODING,       "\005" },
313   { "edit-from",        OP_COMPOSE_EDIT_FROM,           "\033f" },
314   { "edit-fcc",         OP_COMPOSE_EDIT_FCC,            "f" },
315   { "filter-entry",     OP_FILTER,                      "F" },
316   { "get-attachment",   OP_COMPOSE_GET_ATTACHMENT,      "G" },
317   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
318   { "ispell",           OP_COMPOSE_ISPELL,              "i" },
319   { "print-entry",      OP_PRINT,                       "l" },
320   { "edit-mime",        OP_COMPOSE_EDIT_MIME,           "m" },
321   { "new-mime",         OP_COMPOSE_NEW_MIME,            "n" },
322   { "postpone-message", OP_COMPOSE_POSTPONE_MESSAGE,    "P" },
323   { "edit-reply-to",    OP_COMPOSE_EDIT_REPLY_TO,       "r" },
324   { "rename-file",      OP_COMPOSE_RENAME_FILE,         "R" },
325   { "edit-subject",     OP_COMPOSE_EDIT_SUBJECT,        "s" },
326   { "edit-to",          OP_COMPOSE_EDIT_TO,             "t" },
327   { "edit-type",        OP_EDIT_TYPE,                   "\024" },
328   { "write-fcc",        OP_COMPOSE_WRITE_MESSAGE,       "w" },
329   { "toggle-unlink",    OP_COMPOSE_TOGGLE_UNLINK,       "u" },
330   { "toggle-recode",    OP_COMPOSE_TOGGLE_RECODE,       NULL },
331   { "update-encoding",  OP_COMPOSE_UPDATE_ENCODING,     "U" },
332   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
333   { "send-message",     OP_COMPOSE_SEND_MESSAGE,        "y" },
334   { "pipe-entry",       OP_PIPE,                        "|" },
335
336   { "attach-key",       OP_COMPOSE_ATTACH_KEY,          "\033k" },
337   { "pgp-menu",         OP_COMPOSE_PGP_MENU,            "p"     },
338
339   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006"  },
340
341   { "smime-menu",       OP_COMPOSE_SMIME_MENU,          "S"     },
342
343 #ifdef MIXMASTER
344   { "mix",              OP_COMPOSE_MIX,                 "M" },
345 #endif
346   
347   { NULL,               0,                              NULL }
348 };
349
350 struct binding_t OpPost[] = { /* map: postpone */
351   { "delete-entry",     OP_DELETE,      "d" },
352   { "undelete-entry",   OP_UNDELETE,    "u" },
353   { NULL,               0,              NULL }
354 };
355
356 struct binding_t OpAlias[] = { /* map: alias */
357   { "delete-entry",     OP_DELETE,      "d" },
358   { "undelete-entry",   OP_UNDELETE,    "u" },
359   { NULL,               0,              NULL }
360 };
361   
362
363 /* The file browser */
364 struct binding_t OpBrowser[] = { /* map: browser */
365   { "change-dir",       OP_CHANGE_DIRECTORY,    "c" },
366   { "display-filename", OP_BROWSER_TELL,        "@" },
367   { "enter-mask",       OP_ENTER_MASK,          "m" },
368   { "sort",             OP_SORT,                "o" },
369   { "sort-reverse",     OP_SORT_REVERSE,        "O" },
370   { "select-new",       OP_BROWSER_NEW_FILE,    "N" },
371   { "check-new",        OP_CHECK_NEW,           NULL },
372   { "toggle-mailboxes", OP_TOGGLE_MAILBOXES,    "\t" },
373   { "view-file",        OP_BROWSER_VIEW_FILE,   " " },
374   { "buffy-list",       OP_BUFFY_LIST,          "." },
375 #ifdef USE_IMAP
376   { "create-mailbox",   OP_CREATE_MAILBOX,      "C" },
377   { "delete-mailbox",   OP_DELETE_MAILBOX,      "d" },
378   { "rename-mailbox",   OP_RENAME_MAILBOX,      "r" },
379   { "subscribe",        OP_BROWSER_SUBSCRIBE,   "s" },
380   { "unsubscribe",      OP_BROWSER_UNSUBSCRIBE, "u" },
381   { "toggle-subscribed", OP_BROWSER_TOGGLE_LSUB, "T" },
382 #endif
383   { NULL,               0,                      NULL }
384 };
385
386 /* External Query Menu */
387 struct binding_t OpQuery[] = { /* map: query */
388   { "create-alias",     OP_CREATE_ALIAS,        "a" },
389   { "mail",             OP_MAIL,                "m" },
390   { "query",            OP_QUERY,               "Q" },
391   { "query-append",     OP_QUERY_APPEND,        "A" },
392   { NULL,               0,                      NULL }
393 };
394
395 struct binding_t OpEditor[] = { /* map: editor */
396   { "bol",              OP_EDITOR_BOL,                  "\001" },
397   { "backward-char",    OP_EDITOR_BACKWARD_CHAR,        "\002" },
398   { "backward-word",    OP_EDITOR_BACKWARD_WORD,        "\033b"},
399   { "capitalize-word",  OP_EDITOR_CAPITALIZE_WORD,      "\033c"},
400   { "downcase-word",    OP_EDITOR_DOWNCASE_WORD,        "\033l"},
401   { "upcase-word",      OP_EDITOR_UPCASE_WORD,          "\033u"},
402   { "delete-char",      OP_EDITOR_DELETE_CHAR,          "\004" },
403   { "eol",              OP_EDITOR_EOL,                  "\005" },
404   { "forward-char",     OP_EDITOR_FORWARD_CHAR,         "\006" },
405   { "forward-word",     OP_EDITOR_FORWARD_WORD,         "\033f"},
406   { "backspace",        OP_EDITOR_BACKSPACE,            "\010" },
407   { "kill-eol",         OP_EDITOR_KILL_EOL,             "\013" },
408   { "kill-eow",         OP_EDITOR_KILL_EOW,             "\033d"},
409   { "kill-line",        OP_EDITOR_KILL_LINE,            "\025" },
410   { "quote-char",       OP_EDITOR_QUOTE_CHAR,           "\026" },
411   { "kill-word",        OP_EDITOR_KILL_WORD,            "\027" },
412   { "complete",         OP_EDITOR_COMPLETE,             "\t"   },
413   { "complete-query",   OP_EDITOR_COMPLETE_QUERY,       "\024" },
414   { "buffy-cycle",      OP_EDITOR_BUFFY_CYCLE,          " "    },
415   { "history-up",       OP_EDITOR_HISTORY_UP,           NULL   },
416   { "history-down",     OP_EDITOR_HISTORY_DOWN,         NULL   },
417   { "transpose-chars",  OP_EDITOR_TRANSPOSE_CHARS,      NULL   },
418   { NULL,               0,                              NULL   }
419 };
420
421
422
423 struct binding_t OpPgp[] = { /* map: pgp */
424   { "verify-key",       OP_VERIFY_KEY,          "c" },
425   { "view-name",        OP_VIEW_ID,             "%" },
426   { NULL,               0,                              NULL }
427 };
428
429
430
431 /* When using the GPGME based backend we have some useful functions
432    for the SMIME menu.  */
433 struct binding_t OpSmime[] = { /* map: smime */
434 #ifdef CRYPT_BACKEND_GPGME
435   { "verify-key",    OP_VERIFY_KEY,             "c" },
436   { "view-name",     OP_VIEW_ID,                "%" },
437 #endif
438   { NULL,       0,      NULL }
439 };
440
441
442
443 #ifdef MIXMASTER
444 struct binding_t OpMix[] = { /* map: mix */
445   { "accept",           OP_MIX_USE,     M_ENTER_S },
446   { "append",           OP_MIX_APPEND,  "a"       },
447   { "insert",           OP_MIX_INSERT,  "i"       },
448   { "delete",           OP_MIX_DELETE,  "d"       },
449   { "chain-prev",       OP_MIX_CHAIN_PREV, "<left>" },
450   { "chain-next",       OP_MIX_CHAIN_NEXT, "<right>" },
451   { NULL,               0,              NULL }
452 };
453 #endif /* MIXMASTER */