diff options
author | 2019-08-04 14:27:35 +0530 | |
---|---|---|
committer | 2019-08-04 14:31:58 +0530 | |
commit | 9431213e499d403db14cfc86eebbf0099193b86a (patch) | |
tree | 498d8a5309b030355d83aa7e68e1d639f52b3e35 /src | |
parent | 4c4db1430e7725dff5cce347e8b9f583362bda9d (diff) | |
download | nnn-9431213e499d403db14cfc86eebbf0099193b86a.tar.gz |
Support / as an additional leader key
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1798,6 +1798,11 @@ static int filterentries(char *path) redraw(path); goto end; + case '/': /* works as Leader key in filter mode */ + *ch = CONTROL('_'); // fallthrough + if (len == 1) + cur = oldcur; + goto end; case '?': /* '?' is an invalid regex, show help instead */ if (len == 1) { cur = oldcur; @@ -2808,10 +2813,10 @@ static bool show_help(const char *path) "a← h Parent dir ~ ` @ - HOME, /, start, last\n" "8↵ → l Open file/dir . Toggle show hidden\n" "4Home g ^A First entry G ^E Last entry\n" - "c/ Filter Ins ^T Toggle nav-as-you-type\n" "cb Pin current dir ^B Go to pinned dir\n" "7Tab ^I Next context d Toggle detail view\n" "9, ^/ Leader key N LeadN Context N\n" + "c/ Filter/Lead Ins ^T Toggle nav-as-you-type\n" "aEsc Exit prompt ^L Redraw/clear prompt\n" "b^G Quit and cd q Quit context\n" "9Q ^Q Quit ? Help, config\n" |