From da661987aa064ca37dc557b37ff60991684ba514 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 9 Nov 2018 09:51:29 +0530 Subject: [PATCH] key 'q' at key prompt quits context --- README.md | 1 + nnn.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index d78fe0e..42cd939 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,7 @@ The key prompt, invoked by ^B, provides a powerful multi-functional n | ~ | Go to HOME directory | | - | Go to last visited directory | | & | Go to start directory | +| q | Quit context | If all the configured bookmark keys are single character, the prompt is not shown and Enter is not required; just press ^B followed by the key. diff --git a/nnn.c b/nnn.c index 688215d..8e5cabf 100644 --- a/nnn.c +++ b/nnn.c @@ -2807,6 +2807,9 @@ nochange: if (cfg.filtermode) presel = FILTER; goto begin; + case 'q': + presel = 'q'; + goto nochange; } }