From e4c14ee13cf7cbf8d80129aa55e97e1fd85940e6 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 12 Sep 2019 08:30:12 +0530 Subject: [PATCH] Shortcut mapping: S for du, A for apparent du --- README.md | 2 +- src/nnn.c | 2 +- src/nnn.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e6d0d6b6..bf8b8c6d 100644 --- a/README.md +++ b/README.md @@ -257,7 +257,7 @@ Press ? in `nnn` to see the list anytime. ^F Extract archive F List archive e Edit in EDITOR p Open in PAGER ORDER TOGGLES - ^J du S Apparent du + S du A Apparent du s Size E Extn t Time modified MISC ! ^] Shell ^N Note L Lock diff --git a/src/nnn.c b/src/nnn.c index 54a014ad..aa681f95 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2786,7 +2786,7 @@ static bool show_help(const char *path) "b^F Extract archive F List archive\n" "ce Edit in EDITOR p Open in PAGER\n" "1ORDER TOGGLES\n" - "b^J du S Apparent du\n" + "cS du A Apparent du\n" "cs Size E Extn t Time modified\n" "1MISC\n" "9! ^] Shell ^N Note L Lock \n" diff --git a/src/nnn.h b/src/nnn.h index 2eead915..8c98b1e6 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -185,9 +185,9 @@ static struct key bindings[] = { /* Toggle sort by size */ { 's', SEL_FSIZE }, /* Sort by apparent size including dir contents */ - { 'S', SEL_ASIZE }, + { 'A', SEL_ASIZE }, /* Sort by total block count including dir contents */ - { CONTROL('J'), SEL_BSIZE }, + { 'S', SEL_BSIZE }, /* Sort by file extension */ { 'E', SEL_EXTN }, /* Toggle sort by time */