46 N_(
"Change NeoMutt's current working directory"),
47 N_(
"cd [ <directory> ]"),
48 "configuration.html#cd" },
50 N_(
"Print a message to the status line"),
52 "advancedusage.html#echo" },
54 N_(
"Stop reading current config file"),
56 "optionalfeatures.html#ifdef" },
58 N_(
"Conditionally include config commands if symbol defined"),
59 N_(
"ifdef <symbol> '<config-command> [ <args> ... ]'"),
60 "optionalfeatures.html#ifdef" },
62 N_(
"Conditionally include if symbol is not defined"),
63 N_(
"ifndef <symbol> '<config-command> [ <args> ... ]'"),
64 "optionalfeatures.html#ifdef" },
66 N_(
"Define a list of mailboxes to watch"),
67 N_(
"mailboxes [ -label <label> ] [ -notify ] [ -poll ] <mailbox> [ ... ]"),
68 "configuration.html#mailboxes" },
70 N_(
"Define a list of labelled mailboxes to watch"),
71 N_(
"named-mailboxes [ -notify ] [ -poll ] <label> <mailbox> [ ... ]"),
72 "configuration.html#mailboxes" },
74 N_(
"Reset a config option to its initial value"),
75 N_(
"reset <variable> [ <variable> ... ]"),
76 "configuration.html#set" },
78 N_(
"Set a config variable"),
79 N_(
"set [ no | inv | & ] <variable> [?] | <variable> [=|+=|-=] <value> [...]"),
80 "configuration.html#set" },
82 N_(
"Set an environment variable"),
83 N_(
"setenv { <variable>? | <variable>=<value> }"),
84 "advancedusage.html#setenv" },
86 N_(
"Read and execute commands from a config file"),
87 N_(
"source <filename> [ <filename> ... ]"),
88 "configuration.html#source" },
90 N_(
"Toggle the value of a boolean/quad config option"),
91 N_(
"toggle <variable> [ ... ]"),
92 "configuration.html#set" },
94 N_(
"Remove mailboxes from the watch list"),
95 N_(
"unmailboxes { * | <mailbox> ... }"),
96 "configuration.html#mailboxes" },
98 N_(
"Reset a config option to false/empty"),
99 N_(
"unset <variable> [ <variable> ... ]"),
100 "configuration.html#set" },
102 N_(
"Unset an environment variable"),
103 N_(
"unsetenv <variable>"),
104 "advancedusage.html#setenv" },
106 N_(
"Show NeoMutt version and build information"),
108 "advancedusage.html#version" },
125 const struct Command **cp = NULL;
128 const struct Command *cmd = *cp;
150 const struct Command **cp = NULL;
153 const struct Command *cmd = *cp;
160 const char *real_name = cmd->
help;
162 const struct Command **rp = NULL;
165 const struct Command *real_cmd = *rp;
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
@ CF_SYNONYM
Command is a synonym for another command.
@ CF_NONE
No flags are set.
@ CMD_MAILBOXES
:mailboxes
@ CMD_UNMAILBOXES
:unmailboxes
@ CMD_NAMED_MAILBOXES
:named-mailboxes
const struct Command * command_find_by_name(const struct CommandArray *ca, const char *name)
Find a NeoMutt Command by its name.
const struct Command CommandsCommands[]
General NeoMutt Commands.
const struct Command * command_find_by_id(const struct CommandArray *ca, enum CommandId id)
Find a NeoMutt Command by its CommandId.
Convenience wrapper for the core headers.
enum CommandResult parse_finish(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'finish' command - Implements Command::parse() -.
enum CommandResult parse_echo(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'echo' command - Implements Command::parse() -.
enum CommandResult parse_cd(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'cd' command - Implements Command::parse() -.
enum CommandResult parse_setenv(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'setenv' and 'unsetenv' commands - Implements Command::parse() -.
enum CommandResult parse_version(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'version' command - Implements Command::parse() -.
enum CommandResult parse_unmailboxes(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unmailboxes' command - Implements Command::parse() -.
enum CommandResult parse_ifdef(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'ifdef' and 'ifndef' commands - Implements Command::parse() -.
enum CommandResult parse_mailboxes(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'mailboxes' command - Implements Command::parse() -.
enum CommandResult parse_source(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'source' command - Implements Command::parse() -.
enum CommandResult parse_set(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'set' family of commands - Implements Command::parse() -.
Parse Mailboxes Commands.
Convenience wrapper for the library headers.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
CommandFlags flags
Command flags, e.g. CF_SYNONYM.
const char * help
One-line description of the Command.
const char * name
Name of the Command.
enum CommandId id
ID of the Command.