Jump Quickly to a Virtual Mailbox#
Prerequisites#
Notmuch virtual mailboxes configured in NeoMutt (see Getting Started with Notmuch Virtual Mailboxes).
Jump with a Macro#
Create macros that jump directly to specific virtual mailboxes:
macro index gi "<change-folder>notmuch://?query=tag:inbox<Enter>" "Jump to Inbox"
macro index gu "<change-folder>notmuch://?query=tag:inbox and tag:unread<Enter>" "Jump to Unread"
macro index gf "<change-folder>notmuch://?query=tag:flagged<Enter>" "Jump to Flagged"
Press gi, gu, or gf in the index.
Expected result: NeoMutt opens the matching virtual mailbox immediately.
Use change-vfolder to Cycle#
Bind the
<change-vfolder>function:
bind index,pager X change-vfolder
Press X and type the label of a virtual mailbox (e.g.
Inbox), or press <Enter> to jump to the next virtual folder with unread messages.
Expected result: NeoMutt switches to the named virtual mailbox.
Run an Ad-Hoc Query#
Bind
<vfolder-from-query>:
bind index,pager \eX vfolder-from-query
Press Alt-X, type a Notmuch query, and press <Enter>.
Expected result: NeoMutt opens a temporary virtual mailbox for that query.