config: add infrastructure to handle URL mode specific key bindings

* Add “show-urls” action to regular key bindings
* Add url-bindings section to foot.ini
* Add “cancel” action to URL mode key bindings
This commit is contained in:
Daniel Eklöf 2021-01-30 12:43:59 +01:00
parent 8f4a8cd8ce
commit ee39966ded
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 190 additions and 1 deletions

View file

@ -491,6 +491,11 @@ e.g. *search-start=none*.
Default: _not bound_
*show-urls*
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_.
# SECTION: search-bindings
@ -569,6 +574,17 @@ scrollback search mode. The syntax is exactly the same as the regular
Paste from the _primary selection_ into the search
buffer. Default: _Shift+Insert_.
# SECTION: url-bindings
This section lets you override the default key bindings used in URL
mode. The syntax is exactly the same as the regular **key-bindings**.
*cancel*
Exits URL mode without opening an URL. Default: _Control+g
Escape_.
# SECTION: mouse-bindings
This section lets you override the default mouse bindings.