aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.12
-rw-r--r--src/nnn.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/nnn.1 b/nnn.1
index 363410b..e02ee69 100644
--- a/nnn.1
+++ b/nnn.1
@@ -189,6 +189,8 @@ Special keys at empty filter prompt:
- run a plugin by its key: ';'
.br
- pin current directory: ','
+.br
+- go HOME: '~'
.Pp
Other noteworthy keys:
.Pp
diff --git a/src/nnn.c b/src/nnn.c
index ae7a906..4be2a78 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2499,9 +2499,10 @@ static int filterentries(char *path, char *lastname)
if (len == 1) {
switch (*ch) {
case '=': // fallthrough /* Launch app */
- case ']': // fallthorugh /*Prompt key */
+ case ']': // fallthorugh /* Prompt key */
case ';': // fallthrough /* Run plugin key */
case ',': // fallthrough /* Pin CWD */
+ case '~': // fallthrough /* Go HOME */
case '?': /* Help and config key, '?' is an invalid regex */
goto end;
}