mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04:00
initial vimode implementation
This commit is contained in:
parent
be19ca2b20
commit
e2c4ea3535
17 changed files with 1579 additions and 318 deletions
16
config.h
16
config.h
|
|
@ -88,6 +88,7 @@ enum key_binding_type {
|
|||
typedef tll(char *) config_modifier_list_t;
|
||||
|
||||
struct config_key_binding {
|
||||
// TODO (kociap): from wayland.h?
|
||||
int action; /* One of the various bind_action_* enums from wayland.h */
|
||||
//struct config_key_modifiers modifiers;
|
||||
config_modifier_list_t modifiers;
|
||||
|
|
@ -358,9 +359,18 @@ struct config {
|
|||
* Special modes
|
||||
*/
|
||||
|
||||
/* While searching (not - action to *start* a search is in the
|
||||
* 'key' bindings above */
|
||||
struct config_key_binding_list search;
|
||||
/*
|
||||
* Bindings for vimode.
|
||||
* Note: action to enter vimode is in the 'key' bindings
|
||||
* above.
|
||||
*/
|
||||
struct config_key_binding_list vimode;
|
||||
/*
|
||||
* Bindings for the search mode within vimode.
|
||||
* Actions to enter the search mode are in the 'key' and
|
||||
* 'vimode' bindings.
|
||||
*/
|
||||
struct config_key_binding_list vimode_search;
|
||||
|
||||
/* While showing URL jump labels */
|
||||
struct config_key_binding_list url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue