diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-04 18:40:24 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:33:32 +0000 |
| commit | 82e2541760e05e989a6fadf834e088b8128ac74a (patch) | |
| tree | 5598016a54b1014c37c69f49df9222d391194161 | |
| parent | url-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.c | 1 | ||||
| -rw-r--r-- | doc/foot.ini.5.scd | 2 | ||||
| -rw-r--r-- | foot.ini | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -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 @@ -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 |
