diff options
author | lostd <lostd@2f30.org> | 2014-11-06 13:46:37 +0200 |
---|---|---|
committer | lostd <lostd@2f30.org> | 2014-11-06 13:46:37 +0200 |
commit | 6b7c2506db2844d718be714e88cb631b0c721ad2 (patch) | |
tree | 923eb2c274c06571eb3c950080c0982621ed2014 /config.def.h | |
parent | ef3bfef45449a2d660a0ee8880a8888a5aef63fc (diff) | |
download | noice-6b7c2506db2844d718be714e88cb631b0c721ad2.tar.gz |
Expose key bindings in the configuration header
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 3d733a2..855af21 100644 --- a/config.def.h +++ b/config.def.h @@ -10,3 +10,38 @@ struct assoc assocs[] = { { "\\.sh$", "sh" }, { ".*", "less" }, }; + +struct key bindings[] = { + /* Quit */ + { 'q', SEL_QUIT }, + /* Back */ + { KEY_BACKSPACE, SEL_BACK }, + { KEY_LEFT, SEL_BACK }, + { 'h', SEL_BACK }, + /* Inside */ + { KEY_ENTER, SEL_GOIN }, + { '\r', SEL_GOIN }, + { KEY_RIGHT, SEL_GOIN }, + { 'l', SEL_GOIN }, + /* Filter */ + { '/', SEL_FLTR }, + { '&', SEL_FLTR }, + /* Next */ + { 'j', SEL_NEXT }, + { KEY_DOWN, SEL_NEXT }, + { CONTROL('N'), SEL_NEXT }, + /* Previous */ + { 'k', SEL_PREV }, + { KEY_UP, SEL_PREV }, + { CONTROL('P'), SEL_PREV }, + /* Page down */ + { KEY_NPAGE, SEL_PGDN }, + { CONTROL('D'), SEL_PGDN }, + /* Page up */ + { KEY_PPAGE, SEL_PGUP }, + { CONTROL('U'), SEL_PGUP }, + /* Shell */ + { '!', SEL_SH }, + /* Change dir */ + { 'c', SEL_CD }, +}; |