mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-06-12 03:02:27 -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`.
|
`double-width` to `wcswidth`.
|
||||||
* INSTALL.md: `--override tweak.grapheme-shaping=no` added to PGO
|
* INSTALL.md: `--override tweak.grapheme-shaping=no` added to PGO
|
||||||
command line.
|
command line.
|
||||||
|
* url-mode: default key binding for `toggle-url-visible` changed from
|
||||||
|
`t` to `Control+t`.
|
||||||
|
|
||||||
|
|
||||||
### Deprecated
|
### 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_g},
|
||||||
{BIND_ACTION_URL_CANCEL, m_ctrl, XKB_KEY_d},
|
{BIND_ACTION_URL_CANCEL, m_ctrl, XKB_KEY_d},
|
||||||
{BIND_ACTION_URL_CANCEL, m_none, XKB_KEY_Escape},
|
{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);
|
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
|
This section lets you override the default key bindings used in URL
|
||||||
mode. The syntax is exactly the same as the regular **key-bindings**.
|
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*
|
*cancel*
|
||||||
Exits URL mode without opening an URL. Default: _Control+g
|
Exits URL mode without opening an URL. Default: _Control+g
|
||||||
Control+c Control+d Escape_.
|
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
|
This action toggles between showing and hiding the URL on the jump
|
||||||
label.
|
label.
|
||||||
|
|
||||||
Default: _t_.
|
Default: _Control+t_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: mouse-bindings
|
# SECTION: mouse-bindings
|
||||||
|
|
|
||||||
2
foot.ini
2
foot.ini
|
|
@ -150,7 +150,7 @@
|
||||||
|
|
||||||
[url-bindings]
|
[url-bindings]
|
||||||
# cancel=Control+g Control+c Control+d Escape
|
# cancel=Control+g Control+c Control+d Escape
|
||||||
# toggle-url-visible=t
|
# toggle-url-visible=Control+t
|
||||||
|
|
||||||
[mouse-bindings]
|
[mouse-bindings]
|
||||||
# primary-paste=BTN_MIDDLE
|
# primary-paste=BTN_MIDDLE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue