aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/editor.h b/editor.h
index 598cf0c..80fe844 100644
--- a/editor.h
+++ b/editor.h
@@ -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;