diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 13:46:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-08 09:09:14 +0000 |
| commit | 03bac9dada76690971943f824637407100f7a3ee (patch) | |
| tree | 86152095be7afb05878fbe4344ac6fe9c2c327f4 /debug.h | |
| parent | Merge branch 'url-detection' (diff) | |
key-bindings: refactor: use a single type for all key bindings
Up until now, the various key binding modes (“normal”, “search” and
“url”) have used their own struct definitions for their key bindings.
The only reason for this was to have a properly typed “action” (using
the appropriate “action” enum).
This caused lots of duplicated code. This patch refactors this to use
a single struct definition for the “unparsed” key bindings handled by
the configuration, and another single definition for “parsed” bindings
used while handling input.
This allows us to implement configuration parsing, keymap translation
and so on using one set of functions, regardless of key binding mode.
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions
