]> Sergey Matveev's repositories - nnn.git/commitdiff
Change the key to size sort to z
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 22:41:27 +0000 (04:11 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 22:41:27 +0000 (04:11 +0530)
README.md
src/nnn.c
src/nnn.h

index 8289c7b4fc706f9af7305b43e50150eacb08e949..4b0f7b5c036eb9ef1cc105ccac736d1ab64e10df 100644 (file)
--- a/README.md
+++ b/README.md
@@ -218,7 +218,7 @@ The list below is from the **dev branch**. Press <kbd>?</kbd> in `nnn` to see th
             e  Edit in EDITOR    p  Open in PAGER
  ORDER TOGGLES
             A  Apparent du       S  du
-            s  Size   E  Extn    t  Time
+            z  Size   E  Extn    t  Time
  MISC
          ! ^]  Shell             C  Execute entry
          R ^V  Pick plugin   :K xK  Execute plugin K
index cb4112d4112c78c3a001b092d9a9f9976970df3b..b84f4e2ad215c868b18e8823da76a26f6a40895a 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3312,7 +3312,7 @@ static void show_help(const char *path)
                  "ce  Edit in EDITOR    p  Open in PAGER\n"
                "1ORDER TOGGLES\n"
                  "cA  Apparent du       S  du\n"
-                 "cs  Size   E  Extn    t  Time\n"
+                 "cz  Size   E  Extn    t  Time\n"
                "1MISC\n"
               "9! ^]  Shell             C  Execute entry\n"
               "9R ^V  Pick plugin   :K xK  Execute plugin K\n"
index d16395d1dae81b2e7c578c50f943ed19685060ad..a5761505b2b4075280ac82336dec8f2f14523d25 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -191,7 +191,7 @@ static struct key bindings[] = {
        /* Extract archive */
        { CONTROL('F'),   SEL_EXTRACT },
        /* Toggle sort by size */
-       { 's',            SEL_FSIZE },
+       { 'z',            SEL_FSIZE },
        /* Sort by apparent size including dir contents */
        { 'A',            SEL_ASIZE },
        /* Sort by total block count including dir contents */