From cfb524ea5e1ecaa7c0eb0ab2fbb6675e298eb31d Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 29 Jan 2019 23:40:27 +0530 Subject: [PATCH] Fix #200: bind ^P to show command prompt --- README.md | 2 +- nnn.1 | 4 ++-- src/nnn.c | 2 +- src/nnn.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bff58630..e9371ca4 100644 --- a/README.md +++ b/README.md @@ -243,7 +243,7 @@ Press ? 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 c87ba35a..2659852f 100644 --- 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 index 714750eb..aec526b5 100644 --- 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 index 38842daf..e105a257 100644 --- 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 },