nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cfb524ea5e1ecaa7c0eb0ab2fbb6675e298eb31d
parent b1b1f90d113889559ce9f2569b6061d67180f8d4
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Tue, 29 Jan 2019 23:40:27 +0530

Fix #200: bind ^P to show command prompt

Diffstat:
MREADME.md | 2+-
Mnnn.1 | 4++--
Msrc/nnn.c | 2+-
Msrc/nnn.h | 2+-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git 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 @@ -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 diff --git 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; diff --git 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 },