From 7767041c2cb4f7739881cb8433a8ce7f9ef6d08c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 30 Jul 2020 18:53:51 +0200 Subject: 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. --- config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config.h') 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 { -- cgit v1.3