]> Sergey Matveev's repositories - nnn.git/commitdiff
Key > to run plugin
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 15 Sep 2019 13:41:10 +0000 (19:11 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 15 Sep 2019 13:41:10 +0000 (19:11 +0530)
src/nnn.c
src/nnn.h

index 9c2dc1333996333a53c26734e74df0bc80e8a698..bf8f498ebbf8a21edc40f7701603e259f1a8d486 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1751,6 +1751,7 @@ static int filterentries(char *path)
                        switch (*ch) {
                        case '/': /* works as Leader key in filter mode */
                                *ch = CONTROL('_'); // fallthrough
+                       case '>':
                                if (len == 1)
                                        cur = oldcur;
                                goto end;
index 8c98b1e6fe3b721a45ae1a24fad2cc68afd99334..c3ccaab117f44449e4804064055f8047ffb27852 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -235,7 +235,7 @@ static struct key bindings[] = {
        { CONTROL(']'),   SEL_SHELL },
        /* Plugin key */
        { 'x',            SEL_PLUGKEY },
-       { KEY_F(12),      SEL_PLUGKEY },
+       { '>',            SEL_PLUGKEY },
        /* Run a plugin */
        { 'R',            SEL_PLUGIN },
        { CONTROL('V'),   SEL_PLUGIN },