aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--nnn.12
-rw-r--r--nnn.c3
-rw-r--r--nnn.h1
4 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 181c307..04bc859 100644
--- a/README.md
+++ b/README.md
@@ -237,7 +237,7 @@ optional arguments:
n | Create new
^R | Rename entry
s | Toggle sort by size
- S | Toggle du mode
+ S, ^S | Toggle du mode
t | Toggle sort by mtime
! | Spawn SHELL in dir
e | Edit entry in EDITOR
diff --git a/nnn.1 b/nnn.1
index 8307602..1cc7dcb 100644
--- a/nnn.1
+++ b/nnn.1
@@ -84,7 +84,7 @@ Create a new file or directory
Rename selected entry
.It Ic s
Toggle sort by file size
-.It Ic S
+.It Ic S, ^S
Toggle disk usage analyzer mode
.It Ic t
Toggle sort by time modified
diff --git a/nnn.c b/nnn.c
index 397ccd1..5ed0f71 100644
--- a/nnn.c
+++ b/nnn.c
@@ -988,6 +988,7 @@ filterentries(char *path)
case CONTROL('O'): // fallthrough
case CONTROL('B'): // fallthrough
case CONTROL('V'): // fallthrough
+ case CONTROL('S'): // fallthrough
case CONTROL('X'): // fallthrough
case CONTROL('Q'):
goto end;
@@ -1716,7 +1717,7 @@ show_help(char *path)
"en | Create new\n"
"d^R | Rename entry\n"
"es | Toggle sort by size\n"
- "eS | Toggle du mode\n"
+ "aS, ^S | Toggle du mode\n"
"et | Toggle sort by mtime\n"
"e! | Spawn SHELL in dir\n"
"ee | Edit entry in EDITOR\n"
diff --git a/nnn.h b/nnn.h
index 5cea1ad..37cfbed 100644
--- a/nnn.h
+++ b/nnn.h
@@ -137,6 +137,7 @@ static struct key bindings[] = {
{ 's', SEL_FSIZE, "", "" },
/* Sort by total block count including dir contents */
{ 'S', SEL_BSIZE, "", "" },
+ { CONTROL('S'), SEL_BSIZE, "", "" },
/* Toggle sort by time */
{ 't', SEL_MTIME, "", "" },
/* Redraw window */