diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 11:32:31 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 11:32:31 +0000 |
| commit | 57f5cc1bf2d98e6a49f74b39a1b0491b8bb65e51 (patch) | |
| tree | c99bae8854bc635bd06ae4f9c5941de1745733ea /config.h | |
| parent | input: parse_key_binding: free key-codes list if 'bindings' is NULL (diff) | |
config: add support for appending a 'spawn' argument to key bindings
A key binding may now have an optional ':<cmd>' string appended to the
key.
This is intended to be used like so:
pipe-scrollback:sh -c "cat > file"=Print
TODO: we still only allow one *action*. Meaning you still cannot
specify multiple pipe-scrollback bindings, for example.
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,6 +49,8 @@ struct config { struct { /* Bindings for "normal" mode */ char *key[BIND_ACTION_COUNT]; + char *spawn[BIND_ACTION_COUNT]; + struct mouse_binding mouse[BIND_ACTION_COUNT]; /* |
