nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0a1776e18e9038ebd631f83aad2936af475cf49c
parent f6fd15e088f22a90a9d3f01dd8436a507fe5febc
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Tue,  9 Jan 2018 00:31:15 +0530

Add shortcut ^S to toggle du mode

Diffstat:
MREADME.md | 2+-
Mnnn.1 | 2+-
Mnnn.c | 3++-
Mnnn.h | 1+
4 files changed, 5 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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 */