diff options
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -28,11 +28,18 @@ typedef union { } Arg; typedef struct { - const char *key; + const char *name; + const char *help; const char* (*func)(const char *keys, const Arg*); /* returns a pointer to the first not consumed character in keys * or NULL if not enough input was available to complete the command */ const Arg arg; + +} KeyAction; + +typedef struct { + const char *key; + KeyAction *action; const char *alias; } KeyBinding; |
