Go to the source code of this file.
Data Structures | |
| struct | Command |
Typedefs | |
| typedef uint8_t | CommandFlags |
Functions | |
| ARRAY_HEAD (CommandArray, const struct Command *) | |
| 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. | |
| bool | commands_register (struct CommandArray *ca, const struct Command *cmds) |
| Add commands to Commands array. | |
NeoMutt commands API.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file command.h.
| typedef uint8_t CommandFlags |
| enum CommandResult |
Error codes for command_t parse functions.
| Enumerator | |
|---|---|
| MUTT_CMD_ERROR | Error: Can't help the user. |
| MUTT_CMD_WARNING | Warning: Help given to the user. |
| MUTT_CMD_SUCCESS | Success: Command worked. |
| MUTT_CMD_FINISH | Finish: Stop processing this file. |
Definition at line 36 of file command.h.
| enum CommandFlag |
Flags describing command aliases and deprecations.
| Enumerator | |
|---|---|
| CF_NONE | No flags are set. |
| CF_SYNONYM | Command is a synonym for another command. |
| CF_DEPRECATED | Command is deprecated. |
| enum CommandId |
ID of Command.
All the Commands in NeoMutt.
| Enumerator | |
|---|---|
| CMD_NONE | No Command. |
| CMD_ACCOUNT_HOOK | :account-hook |
| CMD_ALIAS | :alias
|
| CMD_ALTERNATES | :alternates
|
| CMD_ALTERNATIVE_ORDER | :alternative-order |
| CMD_APPEND_HOOK | :append-hook
|
| CMD_ATTACHMENTS | :attachments
|
| CMD_AUTO_VIEW | :auto-view
|
| CMD_BIND | :bind
|
| CMD_CD | :cd |
| CMD_CHARSET_HOOK | :charset-hook |
| CMD_CLOSE_HOOK | :close-hook
|
| CMD_COLOR | :color
|
| CMD_CRYPT_HOOK | :crypt-hook |
| CMD_ECHO | :echo |
| CMD_EXEC | :exec |
| CMD_FCC_HOOK | :fcc-hook |
| CMD_FCC_SAVE_HOOK | :fcc-save-hook |
| CMD_FINISH | :finish
|
| CMD_FOLDER_HOOK | :folder-hook |
| CMD_GROUP | :group
|
| CMD_HEADER_ORDER | :header-order |
| CMD_HOOKS | :hooks |
| CMD_ICONV_HOOK | :iconv-hook |
| CMD_IFDEF | :ifdef
|
| CMD_IFNDEF | :ifndef
|
| CMD_IGNORE | :ignore
|
| CMD_INDEX_FORMAT_HOOK | :index-format-hook |
| CMD_LISTS | :lists
|
| CMD_LUA | :lua |
| CMD_LUA_SOURCE | :lua-source |
| CMD_MACRO | :macro
|
| CMD_MAILBOXES | :mailboxes
|
| CMD_MAILTO_ALLOW | :mailto-allow |
| CMD_MBOX_HOOK | :mbox-hook |
| CMD_MESSAGE_HOOK | :message-hook |
| CMD_MIME_LOOKUP | :mime-lookup |
| CMD_MONO | :mono
|
| CMD_MY_HEADER | :my-header
|
| CMD_NAMED_MAILBOXES | :named-mailboxes
|
| CMD_NOSPAM | :nospam
|
| CMD_OPEN_HOOK | :open-hook
|
| CMD_PUSH | :push |
| CMD_REPLY_HOOK | :reply-hook |
| CMD_RESET | :reset
|
| CMD_SAVE_HOOK | :save-hook |
| CMD_SCORE | :score
|
| CMD_SEND2_HOOK | :send2-hook |
| CMD_SEND_HOOK | :send-hook |
| CMD_SET | :set
|
| CMD_SETENV | :setenv
|
| CMD_SHUTDOWN_HOOK | :shutdown-hook |
| CMD_SIDEBAR_PIN | :sidebar-pin
|
| CMD_SIDEBAR_UNPIN | :sidebar-unpin
|
| CMD_SOURCE | :source |
| CMD_SPAM | :spam
|
| CMD_STARTUP_HOOK | :startup-hook |
| CMD_SUBJECT_REGEX | :subject-regex
|
| CMD_SUBSCRIBE | :subscribe
|
| CMD_SUBSCRIBE_TO | :subscribe-to
|
| CMD_TAG_FORMATS | :tag-formats
|
| CMD_TAG_TRANSFORMS | :tag-transforms
|
| CMD_TIMEOUT_HOOK | :timeout-hook |
| CMD_TOGGLE | :toggle |
| CMD_UNALIAS | :unalias
|
| CMD_UNALTERNATES | :unalternates
|
| CMD_UNALTERNATIVE_ORDER | :unalternative-order |
| CMD_UNATTACHMENTS | :unattachments
|
| CMD_UNAUTO_VIEW | :unauto-view
|
| CMD_UNBIND | :unbind
|
| CMD_UNCOLOR | :uncolor
|
| CMD_UNGROUP | :ungroup
|
| CMD_UNHEADER_ORDER | :unheader-order |
| CMD_UNHOOK | :unhook |
| CMD_UNIGNORE | :unignore
|
| CMD_UNLISTS | :unlists
|
| CMD_UNMACRO | :unmacro
|
| CMD_UNMAILBOXES | :unmailboxes
|
| CMD_UNMAILTO_ALLOW | :unmailto-allow |
| CMD_UNMIME_LOOKUP | :unmime-lookup |
| CMD_UNMONO | :unmono
|
| CMD_UNMY_HEADER | :unmy-header
|
| CMD_UNSCORE | :unscore
|
| CMD_UNSET | :unset
|
| CMD_UNSETENV | :unsetenv
|
| CMD_UNSUBJECT_REGEX | :unsubject-regex
|
| CMD_UNSUBSCRIBE | :unsubscribe
|
| CMD_UNSUBSCRIBE_FROM | :unsubscribe-from
|
| CMD_VERSION | :version |
Definition at line 60 of file command.h.
| ARRAY_HEAD | ( | CommandArray | , |
| const struct Command * | ) |
| const struct Command * commands_get | ( | struct CommandArray * | ca, |
| const char * | name ) |
Get a Command by its name.
| ptr | Success, Command |
| NULL | Error, no such command |
Definition at line 82 of file command.c.
| void commands_clear | ( | struct CommandArray * | ca | ) |
Clear an Array of Commands.
Definition at line 70 of file command.c.
| bool commands_register | ( | struct CommandArray * | ca, |
| const struct Command * | cmds ) |
Add commands to Commands array.
| ca | Command Array |
| cmds | New Commands to add |
| true | Success |
Definition at line 51 of file command.c.