]> Sergey Matveev's repositories - nnn.git/commitdiff
Add key ; to execute plugin
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Nov 2019 19:00:00 +0000 (00:30 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Nov 2019 19:00:00 +0000 (00:30 +0530)
README.md
src/nnn.c
src/nnn.h

index 521557bec85ebdfce70b0a22475e5dde351af4ae..1408f38256634bcc5a5682fdece06c82fb94a34e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -220,8 +220,8 @@ The list below is from the **dev branch**. Press <kbd>?</kbd> 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
index ba96805a854b82af446c4bcd073982b5b2b09e25..a9177f03f3a43023908814e3052e1848ac62a16a 100644 (file)
--- 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"};
index a5761505b2b4075280ac82336dec8f2f14523d25..46579f89b60a10c9f4e250bc44fc522704516f65 100644 (file)
--- 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 },