mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
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.
This commit is contained in:
parent
f21ea97037
commit
57f5cc1bf2
2 changed files with 18 additions and 3 deletions
2
config.h
2
config.h
|
|
@ -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];
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue