mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-28 06:46:38 -04:00
config: change key binding for toggle-url-visible to Control+t
The default key binding for toggle-url-visible was, before this, ‘t’. This leads to a collision with the default value of ‘label-letters’, which includes ‘t’.
This commit is contained in:
parent
d4b365b55c
commit
3bb953d698
4 changed files with 8 additions and 3 deletions
|
|
@ -49,6 +49,8 @@
|
|||
`double-width` to `wcswidth`.
|
||||
* INSTALL.md: `--override tweak.grapheme-shaping=no` added to PGO
|
||||
command line.
|
||||
* url-mode: default key binding for `toggle-url-visible` changed from
|
||||
`t` to `Control+t`.
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
|
|||
2
config.c
2
config.c
|
|
@ -2830,7 +2830,7 @@ add_default_url_bindings(struct config *conf)
|
|||
{BIND_ACTION_URL_CANCEL, m_ctrl, XKB_KEY_g},
|
||||
{BIND_ACTION_URL_CANCEL, m_ctrl, XKB_KEY_d},
|
||||
{BIND_ACTION_URL_CANCEL, m_none, XKB_KEY_Escape},
|
||||
{BIND_ACTION_URL_TOGGLE_URL_ON_JUMP_LABEL, m_none, XKB_KEY_t},
|
||||
{BIND_ACTION_URL_TOGGLE_URL_ON_JUMP_LABEL, m_ctrl, XKB_KEY_t},
|
||||
};
|
||||
|
||||
conf->bindings.url.count = ALEN(bindings);
|
||||
|
|
|
|||
|
|
@ -773,6 +773,9 @@ scrollback search mode. The syntax is exactly the same as the regular
|
|||
This section lets you override the default key bindings used in URL
|
||||
mode. The syntax is exactly the same as the regular **key-bindings**.
|
||||
|
||||
Be careful; do not use single-letter keys that are also used in
|
||||
*[url].label-letters*, as doing so will make some URLs inaccessible.
|
||||
|
||||
*cancel*
|
||||
Exits URL mode without opening an URL. Default: _Control+g
|
||||
Control+c Control+d Escape_.
|
||||
|
|
@ -789,7 +792,7 @@ mode. The syntax is exactly the same as the regular **key-bindings**.
|
|||
This action toggles between showing and hiding the URL on the jump
|
||||
label.
|
||||
|
||||
Default: _t_.
|
||||
Default: _Control+t_.
|
||||
|
||||
|
||||
# SECTION: mouse-bindings
|
||||
|
|
|
|||
2
foot.ini
2
foot.ini
|
|
@ -150,7 +150,7 @@
|
|||
|
||||
[url-bindings]
|
||||
# cancel=Control+g Control+c Control+d Escape
|
||||
# toggle-url-visible=t
|
||||
# toggle-url-visible=Control+t
|
||||
|
||||
[mouse-bindings]
|
||||
# primary-paste=BTN_MIDDLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue