]> Sergey Matveev's repositories - nnn.git/commitdiff
Key z to archive, fix du order issue
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 13 Jan 2020 13:27:46 +0000 (18:57 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 13 Jan 2020 13:27:46 +0000 (18:57 +0530)
src/nnn.c
src/nnn.h

index ac7c9bbbd51666c12fd6517ea308880394f55a9b..638aa9fcc70a7d0aa568d4f2361127800f9c0345 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3604,7 +3604,7 @@ static void show_help(const char *path)
                  "cD  File details%-12cd  Detail view toggle\n"
                  "cr  Batch rename%-8cF2 ^R  Rename/duplicate\n"
                  "ce  Edit in EDITOR%-10cp  Open in PAGER\n"
-                 "ci  Archive entry%-11c*  Toggle exe\n"
+                 "cz  Archive entry%-11c*  Toggle exe\n"
           "5Space ^J  (Un)select%-11cm ^K  Select range, clear\n"
                  "cP  Copy sel here%-11ca  Select all\n"
                  "cV  Move sel here%-10c^V  Copy/move sel as\n"
@@ -4987,7 +4987,7 @@ nochange:
                                                cfg.blkorder = 0;
                                        // fallthrough
                                case 'd': /* Disk usage */
-                                       if (sel == SEL_BSIZE) {
+                                       if (r == 'd') {
                                                if (!cfg.apparentsz)
                                                        cfg.blkorder ^= 1;
                                                nftw_fn = &sum_bsizes;
index a5721198051fe72ddeb4ffff45d8332341b5fd5e..25a2f951a4debde5e0cf28b7aa5fb201f4a325e7 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -68,13 +68,6 @@ enum action {
        SEL_CHMODX,
        SEL_ARCHIVE,
        SEL_ORDER,
-       SEL_FSIZE,  /* file size */
-       SEL_ASIZE,  /* apparent size */
-       SEL_BSIZE,  /* block size */
-       SEL_EXTN,   /* order by extension */
-       SEL_MTIME,
-       SEL_REVERSE,
-       SEL_VERSION,
        SEL_REDRAW,
        SEL_SEL,
        SEL_SELMUL,
@@ -183,7 +176,7 @@ static struct key bindings[] = {
        /* Toggle executable status */
        { '*',            SEL_CHMODX },
        /* Create archive */
-       { 'i',            SEL_ARCHIVE },
+       { 'z',            SEL_ARCHIVE },
        /* Order toggle */
        { 'o',            SEL_ORDER },
        { CONTROL('T'),   SEL_ORDER },