59 struct Keymap *last = NULL;
61 struct Keymap *compare = NULL;
67 struct KeymapList *kml = &sm->
keymaps;
88 else if (compare == np)
152 struct Keymap *map = NULL;
283 struct Keymap *map = NULL;
#define ARRAY_FIRST(head)
Convenience method to get the first element.
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_EMPTY(head)
Check if an array is empty.
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
@ MUTT_CMD_ERROR
Error: Can't help the user.
Convenience wrapper for the core headers.
#define KEY_SEQ_MAX_LEN
Maximum number of keys in a key sequence, e.g. abc
Convenience wrapper for the gui headers.
void keymap_free(struct Keymap **pptr)
Free a Keymap.
struct Keymap * keymap_compare(struct Keymap *km1, struct Keymap *km2, size_t *pos)
Compare two keymaps' keyscodes and return the bigger one.
size_t parse_keys(const char *str, keycode_t *d, size_t max)
Parse a key string into key codes.
struct Keymap * keymap_alloc(size_t len, keycode_t *keys)
Allocate space for a sequence of keys.
short keycode_t
Type for key storage, the rest of neomutt works fine with int type.
@ MODULE_ID_KEY
ModuleKey, Key mappings
Convenience wrapper for the library headers.
char * mutt_str_dup(const char *str)
Copy a string, safely.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
#define STAILQ_REMOVE(head, elm, type, field)
#define STAILQ_FOREACH(var, head, field)
#define STAILQ_INSERT_TAIL(head, elm, field)
#define STAILQ_INSERT_HEAD(head, elm, field)
#define STAILQ_NEXT(elm, field)
#define STAILQ_INSERT_AFTER(head, tqelm, elm, field)
String manipulation buffer.
struct MenuDefinitionArray menu_defs
All registered Menus.
char * macro
Macro expansion (op == OP_MACRO)
short eq
Number of leading keys equal to next entry.
char * desc
Description of a macro for the help menu.
short len
Length of key sequence (unit: sizeof (keycode_t))
short op
Operation to perform.
Container for Accounts, Notifications.