23#ifndef MUTT_CORE_COMMAND_H
24#define MUTT_CORE_COMMAND_H
47#define CF_SYNONYM (1 << 0)
48#define CF_DEPRECATED (1 << 1)
#define ARRAY_HEAD(name, T)
Define a named struct for arrays of elements of a certain type.
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
const struct Command * commands_get(struct CommandArray *ca, const char *name)
Get a Command by its name.
void commands_clear(struct CommandArray *ca)
Clear an Array of Commands.
@ CMD_CLOSE_HOOK
:close-hook
@ CMD_MIME_LOOKUP
:mime-lookup
@ CMD_SUBSCRIBE
:subscribe
@ CMD_UNSUBSCRIBE
:unsubscribe
@ CMD_SEND_HOOK
:send-hook
@ CMD_TAG_TRANSFORMS
:tag-transforms
@ CMD_FCC_SAVE_HOOK
:fcc-save-hook
@ CMD_LUA_SOURCE
:lua-source
@ CMD_ICONV_HOOK
:iconv-hook
@ CMD_INDEX_FORMAT_HOOK
:index-format-hook
@ CMD_UNSUBJECT_REGEX
:unsubject-regex
@ CMD_SIDEBAR_PIN
:sidebar-pin
@ CMD_SHUTDOWN_HOOK
:shutdown-hook
@ CMD_UNSUBSCRIBE_FROM
:unsubscribe-from
@ CMD_MAILTO_ALLOW
:mailto-allow
@ CMD_MY_HEADER
:my-header
@ CMD_SIDEBAR_UNPIN
:sidebar-unpin
@ CMD_MESSAGE_HOOK
:message-hook
@ CMD_SEND2_HOOK
:send2-hook
@ CMD_ATTACHMENTS
:attachments
@ CMD_SUBSCRIBE_TO
:subscribe-to
@ CMD_UNMIME_LOOKUP
:unmime-lookup
@ CMD_REPLY_HOOK
:reply-hook
@ CMD_STARTUP_HOOK
:startup-hook
@ CMD_AUTO_VIEW
:auto-view
@ CMD_UNALTERNATIVE_ORDER
:unalternative-order
@ CMD_UNAUTO_VIEW
:unauto-view
@ CMD_CHARSET_HOOK
:charset-hook
@ CMD_UNHEADER_ORDER
:unheader-order
@ CMD_TAG_FORMATS
:tag-formats
@ CMD_MAILBOXES
:mailboxes
@ CMD_ALTERNATES
:alternates
@ CMD_SAVE_HOOK
:save-hook
@ CMD_ALTERNATIVE_ORDER
:alternative-order
@ CMD_TIMEOUT_HOOK
:timeout-hook
@ CMD_ACCOUNT_HOOK
:account-hook
@ CMD_CRYPT_HOOK
:crypt-hook
@ CMD_UNALTERNATES
:unalternates
@ CMD_MBOX_HOOK
:mbox-hook
@ CMD_UNMAILBOXES
:unmailboxes
@ CMD_UNATTACHMENTS
:unattachments
@ CMD_FOLDER_HOOK
:folder-hook
@ CMD_SUBJECT_REGEX
:subject-regex
@ CMD_HEADER_ORDER
:header-order
@ CMD_UNMAILTO_ALLOW
:unmailto-allow
@ CMD_NAMED_MAILBOXES
:named-mailboxes
@ CMD_OPEN_HOOK
:open-hook
@ CMD_APPEND_HOOK
:append-hook
@ CMD_UNMY_HEADER
:unmy-header
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
@ MUTT_CMD_ERROR
Error: Can't help the user.
@ MUTT_CMD_WARNING
Warning: Help given to the user.
@ MUTT_CMD_FINISH
Finish: Stop processing this file.
uint8_t CommandFlags
Special characters that end a text string.
Convenience wrapper for the library headers.
String manipulation buffer.
enum CommandResult(* parse)(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
CommandFlags flags
Command flags, e.g. CF_SYNONYM.
const char * proto
Command prototype.
const char * help
One-line description of the Command.
const char * path
Help path, relative to the NeoMutt Docs.
intptr_t data
Data or flags to pass to the command.
const char * name
Name of the Command.
enum CommandId id
ID of the Command.