From 82e2541760e05e989a6fadf834e088b8128ac74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 4 Feb 2021 19:40:24 +0100 Subject: [PATCH] config: add ctrl+d as (yet another) default binding url-bindings.cancel --- config.c | 1 + doc/foot.ini.5.scd | 2 +- foot.ini | 2 +- 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