From: Arun Prakash Jana Date: Fri, 9 Nov 2018 04:21:29 +0000 (+0530) Subject: key 'q' at key prompt quits context X-Git-Tag: v2.1~48 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=da661987aa064ca37dc557b37ff60991684ba514;p=nnn.git key 'q' at key prompt quits context --- diff --git a/README.md b/README.md index d78fe0e5..42cd9390 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 688215d9..8e5cabf9 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; } }