aboutsummaryrefslogtreecommitdiff
path: root/search.c
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 /search.c
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 'search.c')
-rw-r--r--search.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/search.c b/search.c
index 88bc88aa..59765c2e 100644
--- a/search.c
+++ b/search.c
@@ -18,6 +18,7 @@
#include "render.h"
#include "selection.h"
#include "shm.h"
+#include "unicode-mode.h"
#include "util.h"
#include "xmalloc.h"
@@ -993,6 +994,10 @@ execute_binding(struct seat *seat, struct terminal *term,
*update_search_result = *redraw = true;
return true;
+ case BIND_ACTION_SEARCH_UNICODE_INPUT:
+ unicode_mode_activate(seat);
+ return true;
+
case BIND_ACTION_SEARCH_COUNT:
BUG("Invalid action type");
return true;