]> Sergey Matveev's repositories - nnn.git/commitdiff
Shortcut mapping: S for du, A for apparent du
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 12 Sep 2019 03:00:12 +0000 (08:30 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 12 Sep 2019 03:00:12 +0000 (08:30 +0530)
README.md
src/nnn.c
src/nnn.h

index e6d0d6b6b9f96152dfb9b4aa49bbaf1e64722a56..bf8b8c6d83777c782275f8d8154bd5522c50da13 100644 (file)
--- a/README.md
+++ b/README.md
@@ -257,7 +257,7 @@ Press <kbd>?</kbd> 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
index 54a014ad6cb2425003b47dbfb911038c24704ae8..aa681f95e9b60bfc7c4a4c1238953efd6dff9315 100644 (file)
--- 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"
index 2eead915fe3dba1777f912e8430fc500f4597beb..8c98b1e6fe3b721a45ae1a24fad2cc68afd99334 100644 (file)
--- 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 */