mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
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:
parent
8f4a8cd8ce
commit
ee39966ded
6 changed files with 190 additions and 1 deletions
9
config.h
9
config.h
|
|
@ -42,6 +42,12 @@ struct config_key_binding_search {
|
|||
xkb_keysym_t sym;
|
||||
};
|
||||
|
||||
struct config_key_binding_url {
|
||||
enum bind_action_url action;
|
||||
struct config_key_modifiers modifiers;
|
||||
xkb_keysym_t sym;
|
||||
};
|
||||
|
||||
struct config_mouse_binding {
|
||||
enum bind_action_normal action;
|
||||
struct config_key_modifiers modifiers;
|
||||
|
|
@ -157,6 +163,9 @@ struct config {
|
|||
/* While searching (not - action to *start* a search is in the
|
||||
* 'key' bindings above */
|
||||
tll(struct config_key_binding_search) search;
|
||||
|
||||
/* While showing URL jump labels */
|
||||
tll(struct config_key_binding_url) url;
|
||||
} bindings;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue