README.md | 1 + nnn.c | 3 +++ diff --git a/README.md b/README.md index d78fe0e573df4c1275197fd9ea07cbd9f61c3c4e..42cd9390da9c73fb5164a61af96a8cac76116618 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,7 @@ | key | Go to bookmarked location | | ~ | 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 688215d99c687351a89a7c315cc43574c1287331..8e5cabf9363b6024ccca30d3e931240336d6b7f3 100644 --- a/nnn.c +++ b/nnn.c @@ -2807,6 +2807,9 @@ cfg.curctx = r; if (cfg.filtermode) presel = FILTER; goto begin; + case 'q': + presel = 'q'; + goto nochange; } }