]> Sergey Matveev's repositories - nnn.git/commitdiff
More concise help
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 30 Jan 2019 14:02:13 +0000 (19:32 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 30 Jan 2019 14:02:13 +0000 (19:32 +0530)
README.md
src/nnn.c

index 47b14a66390100add61aa53327e41fc706ace74a..a8451a7aaebc80e240169a96883ded5e528f21a0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -215,37 +215,37 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
 
 ```
  NAVIGATION
-         ↑, k  Up           PgUp, ^U  Scroll up
-         ↓, j  Down         PgDn, ^D  Scroll down
-         ←, h  Parent dir          ~  Go HOME
-      ↵, →, l  Open file/dir       &  Start dir
-  Home, g, ^A  First entry         -  Last visited dir
-   End, G, ^E  Last entry          .  Toggle show hidden
-            /  Filter        Ins, ^T  Toggle nav-as-you-type
-            b  Pin current dir    ^B  Go to pinned dir
-      Tab, ^I  Next context        d  Toggle detail view
-        `, ^/  Leader key   N, LeadN  Go to/create context N
-          Esc  Exit prompt        ^L  Redraw/clear prompt
-           ^G  Quit and cd         q  Quit context
-        Q, ^Q  Quit                ?  Help, config
+          ↑ k  Up           PgUp ^U  Scroll up
+          ↓ j  Down         PgDn ^D  Scroll down
+          ← h  Parent dir         ~  Go HOME
+        ↵ → l  Open file/dir      &  Start dir
+    Home g ^A  First entry        -  Last visited dir
+     End G ^E  Last entry         .  Toggle show hidden
+            /  Filter        Ins ^T  Toggle nav-as-you-type
+            b  Pin current dir   ^B  Go to pinned dir
+       Tab ^I  Next context       d  Toggle detail view
+         ` ^/  Leader key   N LeadN  Go to/create context N
+          Esc  Exit prompt       ^L  Redraw/clear prompt
+           ^G  Quit and cd        q  Quit context
+         Q ^Q  Quit               ?  Help, config
  FILES
-           ^O  Open with...        n  Create new/link
-            D  File details       ^R  Rename entry
-        ⎵, ^K  Copy entry path     r  Open dir in vidir
-           ^Y  Toggle selection    y  List selection
+           ^O  Open with...       n  Create new/link
+            D  File details      ^R  Rename entry
+         ⎵ ^K  Copy entry path    r  Open dir in vidir
+           ^Y  Toggle selection   y  List selection
             Y  Select all
-            P  Copy selection      X  Delete selection
-            V  Move selection     ^X  Delete entry
-            f  Archive entry       F  List archive
-           ^F  Extract archive  m, M  Brief/full media info
-            e  Edit in EDITOR      p  Open in PAGER
+            P  Copy selection     X  Delete selection
+            V  Move selection    ^X  Delete entry
+            f  Archive entry      F  List archive
+           ^F  Extract archive  m M  Brief/full media info
+            e  Edit in EDITOR     p  Open in PAGER
  ORDER TOGGLES
-           ^J  Disk usage          S  Apparent du
-            t  Modification time   s  Size
+           ^J  Disk usage         S  Apparent du
+            t  Modification time  s  Size
  MISC
-        !, ^]  Spawn SHELL in dir  C  Execute entry
-        R, ^V  Run custom script   L  Lock terminal
-           ^P  Command prompt  N, ^N  Take note
+         ! ^]  Spawn SHELL        C  Execute entry
+         R ^V  Run/choose script  L  Lock terminal
+           ^P  Command prompt  N ^N  Take note
 ```
 
 Help & settings, file details, media info and archive listing are shown in the PAGER. Please use the PAGER-specific keys in these screens.
index 7e3c93985f2359b008e22d06d521b9551b8989d6..8d6324e2430c551b2b146cb236dfde44d43eb506 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2256,37 +2256,37 @@ static bool show_help(char *path)
        static char helpstr[] = {
 "0\n"
 "1NAVIGATION\n"
-          "9↑, k  Up           PgUp, ^U  Scroll up\n"
-          "9↓, j  Down         PgDn, ^D  Scroll down\n"
-          "9←, h  Parent dir          ~  Go HOME\n"
-       "6↵, →, l  Open file/dir       &  Start dir\n"
-   "2Home, g, ^A  First entry         -  Last visited dir\n"
-    "3End, G, ^E  Last entry          .  Toggle show hidden\n"
-             "c/  Filter        Ins, ^T  Toggle nav-as-you-type\n"
-             "cb  Pin current dir    ^B  Go to pinned dir\n"
-       "6Tab, ^I  Next context        d  Toggle detail view\n"
-         "8`, ^/  Leader key   N, LeadN  Go to/create context N\n"
-           "aEsc  Exit prompt        ^L  Redraw/clear prompt\n"
-            "b^G  Quit and cd         q  Quit context\n"
-         "8Q, ^Q  Quit                ?  Help, config\n"
+           "a↑ k  Up           PgUp ^U  Scroll up\n"
+           "a↓ j  Down         PgDn ^D  Scroll down\n"
+           "a← h  Parent dir         ~  Go HOME\n"
+         "8↵ → l  Open file/dir      &  Start dir\n"
+     "4Home g ^A  First entry        -  Last visited dir\n"
+      "5End G ^E  Last entry         .  Toggle show hidden\n"
+             "c/  Filter        Ins ^T  Toggle nav-as-you-type\n"
+             "cb  Pin current dir   ^B  Go to pinned dir\n"
+        "7Tab ^I  Next context       d  Toggle detail view\n"
+          "9` ^/  Leader key   N LeadN  Go to/create context N\n"
+           "aEsc  Exit prompt       ^L  Redraw/clear prompt\n"
+            "b^G  Quit and cd        q  Quit context\n"
+          "9Q ^Q  Quit               ?  Help, config\n"
 "1FILES\n"
-            "b^O  Open with...        n  Create new/link\n"
-             "cD  File details       ^R  Rename entry\n"
-         "8⎵, ^K  Copy entry path     r  Open dir in vidir\n"
-            "b^Y  Toggle selection    y  List selection\n"
-            "cY  Select all\n"
-             "cP  Copy selection      X  Delete selection\n"
-             "cV  Move selection     ^X  Delete entry\n"
-             "cf  Archive entry       F  List archive\n"
-            "b^F  Extract archive  m, M  Brief/full media info\n"
-             "ce  Edit in EDITOR      p  Open in PAGER\n"
+            "b^O  Open with...       n  Create new/link\n"
+             "cD  File details      ^R  Rename entry\n"
+          "9⎵ ^K  Copy entry path    r  Open dir in vidir\n"
+            "b^Y  Toggle selection   y  List selection\n"
+             "cY  Select all\n"
+             "cP  Copy selection     X  Delete selection\n"
+             "cV  Move selection    ^X  Delete entry\n"
+             "cf  Archive entry      F  List archive\n"
+            "b^F  Extract archive  m M  Brief/full media info\n"
+             "ce  Edit in EDITOR     p  Open in PAGER\n"
 "1ORDER TOGGLES\n"
-            "b^J  Disk usage          S  Apparent du\n"
-             "ct  Modification time   s  Size\n"
+            "b^J  Disk usage         S  Apparent du\n"
+             "ct  Modification time  s  Size\n"
 "1MISC\n"
-         "8!, ^]  Spawn SHELL in dir  C  Execute entry\n"
-         "8R, ^V  Run custom script   L  Lock terminal\n"
-            "b^P  Command prompt  N, ^N  Take note\n"};
+          "9! ^]  Spawn SHELL        C  Execute entry\n"
+          "9R ^V  Run/choose script  L  Lock terminal\n"
+            "b^P  Command prompt  N ^N  Take note\n"};
 
        if (fd == -1)
                return FALSE;