aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-30 11:43:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:31 +0000
commitee39966dedf9e8fbee5528c324c807b92b9a6c23 (patch)
treecb052ec2b5725b5be0fd85071aa58c75b7d3bf1d /config.h
parentMerge branch 'xassert-performance-regression-2' (diff)
config: add infrastructure to handle URL mode specific key bindings
* Add “show-urls” action to regular key bindings * Add url-bindings section to foot.ini * Add “cancel” action to URL mode key bindings
Diffstat (limited to 'config.h')
-rw-r--r--config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/config.h b/config.h
index 56273053..f46fa35f 100644
--- a/config.h
+++ b/config.h
@@ -42,6 +42,12 @@ struct config_key_binding_search {
xkb_keysym_t sym;
};
+struct config_key_binding_url {
+ enum bind_action_url action;
+ struct config_key_modifiers modifiers;
+ xkb_keysym_t sym;
+};
+
struct config_mouse_binding {
enum bind_action_normal action;
struct config_key_modifiers modifiers;
@@ -157,6 +163,9 @@ struct config {
/* While searching (not - action to *start* a search is in the
* 'key' bindings above */
tll(struct config_key_binding_search) search;
+
+ /* While showing URL jump labels */
+ tll(struct config_key_binding_url) url;
} bindings;
struct {