mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
config: rename ‘show-urls’ to ‘show-urls-launch’
This commit is contained in:
parent
013b26d212
commit
0a1c5e44c4
5 changed files with 7 additions and 6 deletions
4
config.c
4
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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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_.
|
||||
|
|
|
|||
1
foot.ini
1
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
|
||||
|
|
|
|||
2
input.c
2
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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue