From 0a1c5e44c4459390e927440a59acafafc8372da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 4 Feb 2021 20:39:13 +0100 Subject: [PATCH] =?UTF-8?q?config:=20rename=20=E2=80=98show-urls=E2=80=99?= =?UTF-8?q?=20to=20=E2=80=98show-urls-launch=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.c | 4 ++-- doc/foot.ini.5.scd | 2 +- foot.ini | 1 + input.c | 2 +- wayland.h | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config.c b/config.c index 2cf62f45..1c320da8 100644 --- a/config.c +++ b/config.c @@ -75,7 +75,7 @@ static const char *const binding_action_map[] = { [BIND_ACTION_PIPE_SCROLLBACK] = "pipe-scrollback", [BIND_ACTION_PIPE_VIEW] = "pipe-visible", [BIND_ACTION_PIPE_SELECTED] = "pipe-selected", - [BIND_ACTION_SHOW_URLS] = "show-urls", + [BIND_ACTION_SHOW_URLS_LAUNCH] = "show-urls-launch", /* Mouse-specific actions */ [BIND_ACTION_SELECT_BEGIN] = "select-begin", @@ -2114,7 +2114,7 @@ add_default_key_bindings(struct config *conf) add_binding(BIND_ACTION_FONT_SIZE_RESET, ctrl, XKB_KEY_0); add_binding(BIND_ACTION_FONT_SIZE_RESET, ctrl, XKB_KEY_KP_0); add_binding(BIND_ACTION_SPAWN_TERMINAL, ctrl_shift, XKB_KEY_N); - add_binding(BIND_ACTION_SHOW_URLS, ctrl_shift, XKB_KEY_F); + add_binding(BIND_ACTION_SHOW_URLS_LAUNCH, ctrl_shift, XKB_KEY_F); #undef add_binding } diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 0eb4cc11..4d552a67 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -495,7 +495,7 @@ e.g. *search-start=none*. Default: _not bound_ -*show-urls* +*show-urls-launch* Enters URL mode, where all currently visible URLs are tagged with a jump label with a key sequence that will open the URL. Default: _Control+Shift+F_. diff --git a/foot.ini b/foot.ini index b8998c18..41dec6c6 100644 --- a/foot.ini +++ b/foot.ini @@ -97,6 +97,7 @@ # pipe-visible=[sh -c "xurls | bemenu | xargs -r firefox"] none # pipe-scrollback=[sh -c "xurls | bemenu | xargs -r firefox"] none # pipe-selected=[xargs -r firefox] none +# show-urls=Control+Shift+F [search-bindings] # cancel=Control+g Escape diff --git a/input.c b/input.c index 9dbdaad1..dfbf4fa3 100644 --- a/input.c +++ b/input.c @@ -272,7 +272,7 @@ execute_binding(struct seat *seat, struct terminal *term, return true; } - case BIND_ACTION_SHOW_URLS: + case BIND_ACTION_SHOW_URLS_LAUNCH: xassert(!urls_mode_is_active(term)); urls_collect(term); diff --git a/wayland.h b/wayland.h index 2e5997e4..3ad7b862 100644 --- a/wayland.h +++ b/wayland.h @@ -49,7 +49,7 @@ enum bind_action_normal { BIND_ACTION_PIPE_SCROLLBACK, BIND_ACTION_PIPE_VIEW, BIND_ACTION_PIPE_SELECTED, - BIND_ACTION_SHOW_URLS, + BIND_ACTION_SHOW_URLS_LAUNCH, /* Mouse specific actions - i.e. they require a mouse coordinate */ BIND_ACTION_SELECT_BEGIN, @@ -60,7 +60,7 @@ enum bind_action_normal { BIND_ACTION_SELECT_WORD_WS, BIND_ACTION_SELECT_ROW, - BIND_ACTION_KEY_COUNT = BIND_ACTION_SHOW_URLS + 1, + BIND_ACTION_KEY_COUNT = BIND_ACTION_SHOW_URLS_LAUNCH + 1, BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1, };