aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-04 18:40:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:32 +0000
commit82e2541760e05e989a6fadf834e088b8128ac74a (patch)
tree5598016a54b1014c37c69f49df9222d391194161
parenturl-mode: auto-detect: don’t line-wrap URL is row isn’t line-wrapped (diff)
config: add ctrl+d as (yet another) default binding url-bindings.cancel
-rw-r--r--config.c1
-rw-r--r--doc/foot.ini.5.scd2
-rw-r--r--foot.ini2
3 files changed, 3 insertions, 2 deletions
diff --git a/config.c b/config.c
index 18503541..2cf62f45 100644
--- a/config.c
+++ b/config.c
@@ -2181,6 +2181,7 @@ add_default_url_bindings(struct config *conf)
const struct config_key_modifiers ctrl = {.ctrl = true};
add_binding(BIND_ACTION_URL_CANCEL, ctrl, XKB_KEY_g);
+ add_binding(BIND_ACTION_URL_CANCEL, ctrl, XKB_KEY_d);
add_binding(BIND_ACTION_URL_CANCEL, none, XKB_KEY_Escape);
#undef add_binding
diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd
index 71fbc313..0eb4cc11 100644
--- a/doc/foot.ini.5.scd
+++ b/doc/foot.ini.5.scd
@@ -586,7 +586,7 @@ mode. The syntax is exactly the same as the regular **key-bindings**.
*cancel*
Exits URL mode without opening an URL. Default: _Control+g
- Escape_.
+ Control+d Escape_.
# SECTION: mouse-bindings
diff --git a/foot.ini b/foot.ini
index c69f9716..b8998c18 100644
--- a/foot.ini
+++ b/foot.ini
@@ -119,7 +119,7 @@
# primary-paste=Shift+Insert
[url-bindings]
-# cancel=Control+g Escape
+# cancel=Control+g Control+d Escape
[mouse-bindings]
# primary-paste=BTN_MIDDLE