aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-30 16:53:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-30 16:53:51 +0000
commit7767041c2cb4f7739881cb8433a8ce7f9ef6d08c (patch)
tree13f811fc65504a974491068e5a60c48247cedccd /config.h
parentchangelog: use <section>.<option> syntax (diff)
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.
Diffstat (limited to 'config.h')
-rw-r--r--config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.h b/config.h
index aaaa3591..65fedf08 100644
--- a/config.h
+++ b/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 {