]> Sergey Matveev's repositories - nnn.git/commitdiff
remove / as additional lead key when filter is on
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 14 Dec 2019 14:24:13 +0000 (19:54 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 14 Dec 2019 14:24:13 +0000 (19:54 +0530)
src/nnn.c
src/nnn.h

index 6629d99ae62a1c353513b49385af1727a446f80c..45aabcaa6a61c0bead326da852598d7006aba7be 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2086,11 +2086,6 @@ static int filterentries(char *path)
                        }
 
                        switch (*ch) {
-                       case '/': /* works as Leader key in filter mode */
-                               *ch = CONTROL('_'); // fallthrough
-                               if (len == 1)
-                                       cur = oldcur;
-                               goto end;
                        case '=': // fallthrough /* Launch app */
                        case ';': // fallthrough /* Run plugin key */
                        case '?': /* Help and config key, '?' is an invalid regex */
@@ -3480,7 +3475,7 @@ static void show_help(const char *path)
                  "cb  Pin CWD          ^B  Go to pinned dir\n"
               "9, ^/  Lead key    N LeadN  Context N\n"
            "6(Sh)Tab  Cycle context     d  Detail view toggle\n"
-                 "c/  Filter/Lead  Ins ^N  Nav-as-you-type toggle\n"
+                 "c/  Filter       Ins ^N  Nav-as-you-type toggle\n"
                "aEsc  Exit prompt   ^L F5  Redraw/clear prompt\n"
                  "c.  Show/hide dots    ?  Help, conf\n"
               "9Q ^Q  Quit  ^G  QuitCD  q  Quit context\n"
@@ -3499,7 +3494,7 @@ static void show_help(const char *path)
                  "cz  Size   E  Extn    t  Time\n"
                "1MISC\n"
               "9! ^]  Shell           ; x  Plugin key\n"
-                 "cC  Execute file   R ^V  Pick plugin\n"
+                 "cC  Execute file   i ^V  Pick plugin\n"
                  "cs  Manage session    =  Launch app\n"
                  "cc  Connect remote    u  Unmount\n"
               "9] ^P  Prompt/run cmd    L  Lock\n"};
index e7d1ab0257c0a1dd7b459b8cbffa3e010845e27f..8a495d1d01cbc3391fe0c459e837f556c13b7e8e 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -246,7 +246,7 @@ static struct key bindings[] = {
        { 'x',            SEL_PLUGKEY },
        { ';',            SEL_PLUGKEY },
        /* Run a plugin */
-       { 'R',            SEL_PLUGIN },
+       { 'i',            SEL_PLUGIN },
        { CONTROL('V'),   SEL_PLUGIN },
        /* Launcher */
        { '=',            SEL_LAUNCH },