aboutsummaryrefslogtreecommitdiff
path: root/key-binding.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-07-28 16:09:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-07-29 07:26:31 +0000
commit8967dd9cfe51276d63ef8ff64e8fc76f80a6fa3d (patch)
tree5df2e32f399132105886600ab1854b392e83ff38 /key-binding.h
parentselection: rework how we update a selection (diff)
input: add new Unicode input mode
This mode is activated through the new key-bindings.unicode-input and search-bindings.unicode-input key bindings. When active, the user can “build” a Unicode codepoint by typing its hexadecimal value. Note that there’s no visual feedback in this mode. This is intentional. This mode is intended to be a fallback for users that don’t use an IME. Closes #1116
Diffstat (limited to 'key-binding.h')
-rw-r--r--key-binding.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/key-binding.h b/key-binding.h
index 1c0e2a99..448500c1 100644
--- a/key-binding.h
+++ b/key-binding.h
@@ -38,6 +38,7 @@ enum bind_action_normal {
BIND_ACTION_TEXT_BINDING,
BIND_ACTION_PROMPT_PREV,
BIND_ACTION_PROMPT_NEXT,
+ BIND_ACTION_UNICODE_INPUT,
/* Mouse specific actions - i.e. they require a mouse coordinate */
BIND_ACTION_SELECT_BEGIN,
@@ -48,7 +49,7 @@ enum bind_action_normal {
BIND_ACTION_SELECT_WORD_WS,
BIND_ACTION_SELECT_ROW,
- BIND_ACTION_KEY_COUNT = BIND_ACTION_PROMPT_NEXT + 1,
+ BIND_ACTION_KEY_COUNT = BIND_ACTION_UNICODE_INPUT + 1,
BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1,
};
@@ -72,6 +73,7 @@ enum bind_action_search {
BIND_ACTION_SEARCH_EXTEND_WORD_WS,
BIND_ACTION_SEARCH_CLIPBOARD_PASTE,
BIND_ACTION_SEARCH_PRIMARY_PASTE,
+ BIND_ACTION_SEARCH_UNICODE_INPUT,
BIND_ACTION_SEARCH_COUNT,
};