diff options
author | lostd <lostd@2f30.org> | 2015-03-12 16:12:01 +0200 |
---|---|---|
committer | lostd <lostd@2f30.org> | 2015-03-12 16:12:01 +0200 |
commit | 3dc40acbffd2c57f92401eab8ce32114bea8788f (patch) | |
tree | 1bf1cef202d64c50ae3fb1fe0d9e05d466dac08c /config.def.h | |
parent | bc11d7b201fcb81f5457d5e3916512126649f6cf (diff) | |
download | noice-3dc40acbffd2c57f92401eab8ce32114bea8788f.tar.gz |
Key bindings to run user-defined commands
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 45e9d5b..9b730ba 100644 --- a/config.def.h +++ b/config.def.h @@ -45,11 +45,14 @@ struct key bindings[] = { /* Page up */ { KEY_PPAGE, SEL_PGUP }, { CONTROL('U'), SEL_PGUP }, - /* Shell */ - { '!', SEL_SH }, /* Change dir */ { 'c', SEL_CD }, /* Toggle sort by time */ { 't', SEL_MTIME }, { CONTROL('L'), SEL_REDRAW }, + /* Run command */ + { '!', SEL_RUN, "sh" }, + { 'z', SEL_RUN, "top" }, + /* Run command with argument */ + { 'e', SEL_RUNARG, "vi" }, }; |