config: rename ‘show-urls’ to ‘show-urls-launch’

This commit is contained in:
Daniel Eklöf 2021-02-04 20:39:13 +01:00
parent 013b26d212
commit 0a1c5e44c4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 7 additions and 6 deletions

View file

@ -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
}

View file

@ -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_.

View file

@ -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

View file

@ -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);

View file

@ -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,
};