diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-10-10 15:03:05 +0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-10-11 18:40:12 +0800 |
commit | 0e32b977454de79899c497debcd460470e720e7a (patch) | |
tree | f44e17208ddf9eaafbf63c9c86e021952916896f /functions.h | |
parent | e4c176b3546c224c05a430c5aaae86567caec917 (diff) |
Add new browse-mailboxes function in index and pager.
This allows direct access to the mailboxes list in the folder menu.
This is useful, for instance, if $browser_sticky_cursor is set and the
current directory does not contain the open mailbox. The macro
version will lose the current mailbox while toggling to the mailboxes
list.
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.h b/functions.h index 419dfc50..ba8340b8 100644 --- a/functions.h +++ b/functions.h @@ -91,6 +91,8 @@ const struct binding_t OpMain[] = { /* map: index */ #endif { "bounce-message", OP_BOUNCE_MESSAGE, "b" }, { "break-thread", OP_MAIN_BREAK_THREAD, "#" }, + { "browse-mailboxes", OP_MAIN_BROWSE_MAILBOXES, "y" }, + { "browse-mailboxes-readonly", OP_MAIN_BROWSE_MAILBOXES_READONLY, NULL }, { "change-folder", OP_MAIN_CHANGE_FOLDER, "c" }, { "change-folder-readonly", OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" }, { "next-unread-mailbox", OP_MAIN_NEXT_UNREAD_MAILBOX, NULL }, @@ -195,6 +197,8 @@ const struct binding_t OpMain[] = { /* map: index */ const struct binding_t OpPager[] = { /* map: pager */ { "break-thread", OP_MAIN_BREAK_THREAD, "#" }, + { "browse-mailboxes", OP_MAIN_BROWSE_MAILBOXES, "y" }, + { "browse-mailboxes-readonly", OP_MAIN_BROWSE_MAILBOXES_READONLY, NULL }, { "create-alias", OP_CREATE_ALIAS, "a" }, { "bounce-message", OP_BOUNCE_MESSAGE, "b" }, { "change-folder", OP_MAIN_CHANGE_FOLDER, "c" }, |