From cfb524ea5e1ecaa7c0eb0ab2fbb6675e298eb31d Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 29 Jan 2019 23:40:27 +0530 Subject: Fix #200: bind ^P to show command prompt --- src/nnn.c | 2 +- src/nnn.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 714750e..aec526b 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 38842da..e105a25 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 }, -- cgit v1.2.3-70-g09d2