From 4ee9e2d129854b9062842644b2ca930b79f49c2b Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 18 Nov 2019 00:30:00 +0530 Subject: [PATCH] Add key ; to execute plugin --- README.md | 4 ++-- src/nnn.c | 5 +++-- src/nnn.h | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 521557be..1408f382 100644 --- a/README.md +++ b/README.md @@ -220,8 +220,8 @@ The list below is from the **dev branch**. Press ? in `nnn` to see th A Apparent du S du z Size E Extn t Time MISC - ! ^] Shell C Execute entry - R ^V Pick plugin :K xK Execute plugin K + ! ^] Shell ;K :K xK Execute plugin K + C Execute entry R ^V Pick plugin U Manage session = Launch c SSHFS mount u Unmount ^P Prompt/run cmd L Lock diff --git a/src/nnn.c b/src/nnn.c index ba96805a..a9177f03 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2001,6 +2001,7 @@ static int filterentries(char *path) case '/': /* works as Leader key in filter mode */ *ch = CONTROL('_'); // fallthrough case ':': + case ';': if (len == 1) cur = oldcur; goto end; @@ -3327,8 +3328,8 @@ static void show_help(const char *path) "cA Apparent du S du\n" "cz Size E Extn t Time\n" "1MISC\n" - "9! ^] Shell C Execute entry\n" - "9R ^V Pick plugin :K xK Execute plugin K\n" + "9! ^] Shell ;K :K xK Execute plugin K\n" + "cC Execute entry R ^V Pick plugin\n" "cU Manage session = Launch\n" "cc SSHFS mount u Unmount\n" "b^P Prompt/run cmd L Lock\n"}; diff --git a/src/nnn.h b/src/nnn.h index a5761505..46579f89 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -250,6 +250,7 @@ static struct key bindings[] = { /* Plugin key */ { 'x', SEL_PLUGKEY }, { ':', SEL_PLUGKEY }, + { ';', SEL_PLUGKEY }, /* Run a plugin */ { 'R', SEL_PLUGIN }, { CONTROL('V'), SEL_PLUGIN },