2.4.1. Global Commands

The following commands are available globally

bclose

close a buffer

optional arguments
—redraw:redraw current buffer after command has finished.
—force:never ask for confirmation.
bprevious

focus previous buffer

search

open a new search buffer. Search obeys the notmuch search.exclude_tags setting.

argument
search string
optional arguments
—sort:sort order. Valid choices are: `oldest_first`,`newest_first`,`message_id`,`unsorted`.
repeat

Repeats the command executed last time

prompt

prompts for commandline and interprets it upon select

argument
initial content
help

display help for a command. Use ‘bindings’ to display all keybings interpreted in current mode.’

argument
command or ‘bindings’
buffer

focus buffer with given index

argument
buffer index to focus
move

move focus in current buffer

argument
up, down, [half]page up, [half]page down, first, last
shellescape

run external command

argument
command line to execute
optional arguments
—spawn:run in terminal window.
—thread:run in separate thread.
—refocus:refocus current buffer after command has finished.
refresh

refresh the current buffer

reload

Reload all configuration files

pyshell

open an interactive python shell for introspection

compose

compose a new email

argument
None
optional arguments
—sender:sender.
—template:path to a template message file.
—tags:comma-separated list of tags to apply to message.
—subject:subject line.
—to:recipients.
—cc:copy to.
—bcc:blind copy to.
—attach:attach files.
—omit_signature:
 do not add signature.
—spawn:spawn editor in new terminal.
exit

Shut down cleanly.

The _prompt variable is for internal use only, it’s used to control prompting to close without sending, and is used by the BufferCloseCommand if settings change after yielding to the UI.

flush

flush write operations or retry until committed

bufferlist

open a list of active buffers

call

Executes python code

argument
python command string to call
bnext

focus next buffer

taglist

opens taglist buffer

optional arguments
—tags:tags to display.