]> Sergey Matveev's repositories - nnn.git/commitdiff
Map ^V to run custom script
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 5 Jan 2019 20:38:07 +0000 (02:08 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 5 Jan 2019 20:38:07 +0000 (02:08 +0530)
README.md
nnn.1
src/nnn.c
src/nnn.h

index 9c5c7bb0e7318a53f690868e307aacd04bf0014c..3ae272113c15cd68d22add22affd6f7061229d03 100644 (file)
--- a/README.md
+++ b/README.md
@@ -249,7 +249,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
               t  Modification time   s  Size
  MISC
           !, ^]  Spawn SHELL in dir  C  Execute entry
-              R  Run custom script   L  Lock terminal
+          R, ^V  Run custom script   L  Lock terminal
              ^S  Run a command
 ```
 
diff --git a/nnn.1 b/nnn.1
index 6cd8e19128b4aa914ac25462b89d1473d0508bc3..545dcad563fc97a62494275eb204fd3242fa810b 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -147,7 +147,7 @@ MISC
 Spawn SHELL in current directory (fallback sh)
 .It Ic C
 Execute entry
-.It Ic R
+.It Ic R, ^V
 Run or choose a custom script
 .It Ic L
 Lock terminal
index 7c473ab793d8bc2f942fcb2bed4d8e7df82e7565..60ec887705f262ebf9d331b442f97c0aa17e9b2d 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2109,7 +2109,7 @@ static bool show_help(char *path)
              "et  Modification time   s  Size\n"
 "1MISC\n"
          "a!, ^]  Spawn SHELL in dir  C  Execute entry\n"
-             "eR  Run custom script   L  Lock terminal\n"
+         "aR, ^V  Run custom script   L  Lock terminal\n"
             "d^S  Run a command\n"};
 
        if (fd == -1)
index e52986b62367d6833d641e4639d3a3a1872018c0..c68d4d4278c5610c0c86c37de05196d29419bc30 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -215,6 +215,7 @@ static struct key bindings[] = {
        { CONTROL(']'),   SEL_SHELL },
        /* Run a custom script */
        { 'R',            SEL_SCRIPT },
+       { CONTROL('V'),   SEL_SCRIPT },
        /* Run a command */
        { CONTROL('S'),   SEL_RUNCMD },
        /* Open in EDITOR or PAGER */