mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-24 09:05:48 -04:00
config: tokenize key bindings' pipe command when loading the configuration
This allows us to detect syntax errors early on, and is also more efficient since we don't have to re-tokenize the command line every time the binding is executed.
This commit is contained in:
parent
6a186cb356
commit
7767041c2c
5 changed files with 50 additions and 65 deletions
5
config.h
5
config.h
|
|
@ -17,7 +17,10 @@ struct config_font {
|
|||
struct config_key_binding_normal {
|
||||
enum bind_action_normal action;
|
||||
char *key;
|
||||
char *pipe_cmd;
|
||||
struct {
|
||||
char *cmd;
|
||||
char **argv;
|
||||
} pipe;
|
||||
};
|
||||
|
||||
struct config_key_binding_search {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue