]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #200: bind ^P to show command prompt
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 29 Jan 2019 18:10:27 +0000 (23:40 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 29 Jan 2019 18:10:46 +0000 (23:40 +0530)
README.md
nnn.1
src/nnn.c
src/nnn.h

index bff58630a7ac26f05a2a5e987678e8df8782187f..e9371ca424d9813fd56d52bbc9d82a6585a38c09 100644 (file)
--- a/README.md
+++ b/README.md
@@ -243,7 +243,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
  MISC
         !, ^]  Spawn SHELL in dir  C  Execute entry
         R, ^V  Run custom script   L  Lock terminal
-           ^S  Run a command   N, ^N  Take note
+           ^P  Command prompt  N, ^N  Take note
 ```
 
 Help & settings, file details, media info and archive listing are shown in the PAGER. Please use the PAGER-specific keys in these screens.
diff --git a/nnn.1 b/nnn.1
index c87ba35a9a606bec77f201b003bdfbfb08c6df78..2659852f47870d53df9533086da9bc22fa9feb1e 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -150,8 +150,8 @@ Run or choose a custom script
 Lock terminal
 .It Ic N
 Take note
-.It Ic ^S
-Run a command
+.It Ic ^P
+Show command prompt
 .El
 .Pp
 Backing up one directory level will set the cursor position at the
index 714750ebf16085035b5044a18c8399532efb746f..aec526b5e76102582a40ef80136de3e52fa93724 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2298,7 +2298,7 @@ static bool show_help(char *path)
 "1MISC\n"
          "8!, ^]  Spawn SHELL in dir  C  Execute entry\n"
          "8R, ^V  Run custom script   L  Lock terminal\n"
-            "b^S  Run a command   N, ^N  Take note\n"};
+            "b^P  Command prompt  N, ^N  Take note\n"};
 
        if (fd == -1)
                return FALSE;
index 38842daf124bb8880e30b4f90c85f0ce36f2a9b5..e105a25735feba81a72bb7ab232b09e45b63a3f7 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -219,7 +219,7 @@ static struct key bindings[] = {
        { 'R',            SEL_SCRIPT },
        { CONTROL('V'),   SEL_SCRIPT },
        /* Run a command */
-       { CONTROL('S'),   SEL_RUNCMD },
+       { CONTROL('P'),   SEL_RUNCMD },
        /* Open in EDITOR or PAGER */
        { 'e',            SEL_RUNEDIT },
        { 'p',            SEL_RUNPAGE },