62 for (
int i = 0; map[i].
op != OP_NULL; i++)
115 struct Keymap *np = NULL, *tmp = NULL;
169 mutt_error(
_(
"Abort key is not set, defaulting to Ctrl-G"));
175 mutt_warning(
_(
"Specified abort key sequence (%s) will be truncated to first key"),
const struct MenuOpSeq QueryDefaultBindings[]
Key bindings for the external Query Menu.
const struct MenuOpSeq AliasDefaultBindings[]
Key bindings for the Alias Menu.
const struct MenuOpSeq AttachmentDefaultBindings[]
Key bindings for the Attachment Menu.
const struct MenuOpSeq AutocryptDefaultBindings[]
Key bindings for the Autocrypt Account.
const struct MenuOpSeq BrowserDefaultBindings[]
Key bindings for the file Browser Menu.
const struct MenuOpSeq ComposeDefaultBindings[]
Key bindings for the Compose Menu.
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Convenience wrapper for the config headers.
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Convenience wrapper for the core headers.
const struct MenuOpSeq EditorDefaultBindings[]
Key bindings for the Editor Menu.
enum CommandResult parse_push(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'push' command - Implements Command::parse() -.
enum CommandResult parse_bind(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'bind' command - Implements Command::parse() -.
enum CommandResult parse_unbind(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unbind' command - Implements Command::parse() -.
enum CommandResult parse_exec(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'exec' command - Implements Command::parse() -.
enum CommandResult parse_macro(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'macro' command - Implements Command::parse() -.
#define mutt_warning(...)
#define mutt_debug(LEVEL,...)
int key_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
const struct MenuOpSeq GenericDefaultBindings[]
Key bindings for the Generic Menu.
const struct MenuOpSeq DialogDefaultBindings[]
Key bindings for Simple Dialogs.
Convenience wrapper for the gui headers.
const struct MenuOpSeq IndexDefaultBindings[]
Key bindings for the Index Menu.
const struct MenuOpSeq PostponedDefaultBindings[]
Key bindings for the Postpone Menu.
void km_init(void)
Initialise all the menu keybindings.
const struct MenuOpSeq PagerDefaultBindings[]
Key bindings for the Pager Menu.
static const struct Command KeyCommands[]
Key Binding Commands.
static void create_bindings(const struct MenuOpSeq *map, enum MenuType mtype)
Attach a set of keybindings to a Menu.
const struct MenuOpSeq PgpDefaultBindings[]
Key bindings for the Pgp Menu.
static void mutt_keymaplist_free(struct KeymapList *km_list)
Free a List of Keymaps.
void mutt_keys_cleanup(void)
Free the key maps.
const struct MenuOpSeq SmimeDefaultBindings[]
Key bindings for the Smime Menu.
void mutt_init_abort_key(void)
Parse the abort_key config string.
enum CommandResult km_bind(const char *s, enum MenuType mtype, int op, char *macro, char *desc, struct Buffer *err)
Set up a key binding.
keycode_t AbortKey
code of key to abort prompts, normally Ctrl-G
void mutt_keymap_free(struct Keymap **ptr)
Free a Keymap.
struct KeymapList Keymaps[MENU_MAX]
Array of key mappings, one for each MenuType.
size_t parsekeys(const char *str, keycode_t *d, size_t max)
Parse a key string into key codes.
#define MUTT_UNBIND
Parse 'unbind' command.
#define MUTT_UNMACRO
Parse 'unmacro' command.
short keycode_t
Type for key storage, the rest of neomutt works fine with int type.
@ LL_DEBUG5
Log at debug level 5.
Convenience wrapper for the library headers.
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
@ NT_CONFIG
Config has changed, NotifyConfig, EventConfig.
#define STAILQ_REMOVE(head, elm, type, field)
#define STAILQ_INIT(head)
#define STAILQ_FOREACH_SAFE(var, head, field, tvar)
struct Notify * notify
Notifications: NotifyConfig, EventConfig.
const char * name
Name of config item that changed.
Container for Accounts, Notifications.
struct CommandArray commands
NeoMutt commands.
struct ConfigSubset * sub
Inherited config items.
Data passed to a notification function.
void * event_data
Data from notify_send()
enum NotifyType event_type
Send: Event type, e.g. NT_ACCOUNT.
MenuType
Types of GUI selections.
@ MENU_INDEX
Index panel (list of emails)
@ MENU_DIALOG
Simple Dialog.
@ MENU_QUERY
Select from results of external query.
@ MENU_BROWSER
General file/mailbox browser.
@ MENU_AUTOCRYPT
Autocrypt Account menu.
@ MENU_COMPOSE
Compose an email.
@ MENU_ATTACHMENT
Select an attachment.
@ MENU_PGP
PGP encryption menu.
@ MENU_GENERIC
Generic selection list.
@ MENU_PAGER
Pager pager (email viewer)
@ MENU_SMIME
SMIME encryption menu.
@ MENU_EDITOR
Text entry area.
@ MENU_ALIAS
Select an email address by its alias.
@ MENU_POSTPONED
Select a postponed email.