NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
notify.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_KEY_NOTIFY_H
24
#define MUTT_KEY_NOTIFY_H
25
26
#include "
get.h
"
27
#include "
keymap.h
"
28
32
struct
EventBinding
33
{
34
const
struct
MenuDefinition
*
menu
;
35
const
char
*
key
;
36
int
op
;
37
};
38
46
enum
NotifyBinding
47
{
48
NT_BINDING_ADD
= 1,
49
NT_BINDING_DELETE
,
50
NT_MACRO_ADD
,
51
NT_MACRO_DELETE
,
52
};
53
57
struct
EventKeyProgress
58
{
59
const
struct
MenuDefinition
*
md
;
60
int
count
;
61
short
key_len
;
62
keycode_t
keys
[
KEY_SEQ_MAX_LEN
];
63
};
64
70
enum
NotifyKey
71
{
72
NT_KEY_PROGRESS
= 1,
73
};
74
75
#endif
/* MUTT_KEY_NOTIFY_H */
get.h
Get a key from the user.
KEY_SEQ_MAX_LEN
#define KEY_SEQ_MAX_LEN
Maximum number of keys in a key sequence, e.g. abc.
Definition
get.h:48
NotifyBinding
NotifyBinding
Key Binding notification types.
Definition
notify.h:47
NT_MACRO_ADD
@ NT_MACRO_ADD
Key macro has been added.
Definition
notify.h:50
NT_MACRO_DELETE
@ NT_MACRO_DELETE
Key macro has been deleted.
Definition
notify.h:51
NT_BINDING_DELETE
@ NT_BINDING_DELETE
Key binding has been deleted.
Definition
notify.h:49
NT_BINDING_ADD
@ NT_BINDING_ADD
Key binding has been added.
Definition
notify.h:48
NotifyKey
NotifyKey
Key runtime notification types.
Definition
notify.h:71
NT_KEY_PROGRESS
@ NT_KEY_PROGRESS
Key state has changed.
Definition
notify.h:72
keymap.h
Keymap handling.
keycode_t
short keycode_t
Type for key storage, the rest of neomutt works fine with int type.
Definition
keymap.h:31
EventBinding
A key binding Event.
Definition
notify.h:33
EventBinding::key
const char * key
Key string being bound (for new bind/macro).
Definition
notify.h:35
EventBinding::op
int op
Operation the key's bound to (for bind), e.g. OP_DELETE.
Definition
notify.h:36
EventBinding::menu
const struct MenuDefinition * menu
Menu Definition.
Definition
notify.h:34
EventKeyProgress
Runtime key progress event.
Definition
notify.h:58
EventKeyProgress::key_len
short key_len
Number of keys entered.
Definition
notify.h:61
EventKeyProgress::keys
keycode_t keys[KEY_SEQ_MAX_LEN]
Entered keys.
Definition
notify.h:62
EventKeyProgress::md
const struct MenuDefinition * md
Menu being matched.
Definition
notify.h:59
EventKeyProgress::count
int count
Parsed count prefix, if any.
Definition
notify.h:60
MenuDefinition
Functions for a Dialog or Window.
Definition
menudef.h:44