]> Sergey Matveev's repositories - nnn.git/commitdiff
Support TAB to cycle contexts
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 2 Dec 2018 00:41:03 +0000 (06:11 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 2 Dec 2018 00:41:03 +0000 (06:11 +0530)
README.md
nnn.1
src/nnn.c
src/nnn.h

index bfb51b4408cd33000ae8bc8e46c94c29218aac2a..f1985e74ebd2de63b7bd1c1b9a50d34261667481 100644 (file)
--- a/README.md
+++ b/README.md
@@ -225,8 +225,8 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
     →, ↵, l, ^M  Open file/enter dir   .  Toggle show hidden
               /  Filter          Ins, ^I  Toggle nav-as-you-type
               b  Pin current dir      ^W  Go to pinned dir
-              d  Toggle detail view   ^T  Next active context
-          `, ^/  Leader key      LeaderN  Go to context N
+        Tab, ^T  Next active context   d  Toggle detail view
+          `, ^/  Leader key      LeaderN  Go to/create context N
             Esc  Exit prompt          ^L  Redraw, clear prompt
              ^G  Quit and cd           q  Quit context
           Q, ^Q  Quit                  ?  Help, config
@@ -241,8 +241,8 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
              ^F  Extract archive    m, M  Brief/full media info
               e  Edit in EDITOR        p  Open in PAGER
  ORDER
-             ^J  Toggle du mode        S  Toggle apparent size
-              s  Toggle sort by size   t  Toggle sort by mtime
+             ^J  Disk usage            S  Apparent du
+              s  Size                  t  Modification time
  MISC
               o  Launch GUI app    !, ^]  Spawn SHELL in dir
               R  Run custom script     L  Lock terminal
diff --git a/nnn.1 b/nnn.1
index cdce894ad0680f8f7c12e535dd159c0d3e8a5980..91f2ebf184f39b15ad69b8dda7e647920ec5ce96 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -66,7 +66,7 @@ Pin current directory
 Visit pinned directory
 .It Ic d
 Toggle detail view
-.It Ic ^T
+.It Ic Tab, ^T
 Next active context
 .It Ic `, ^/
 Leader key
index 00e73849a993a27fd9564b31b5e762344e9272be..63c2027afd5788e8e12244375d80b94aaf32288f 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2049,8 +2049,8 @@ static int show_help(char *path)
    "4→, ↵, l, ^M  Open file/enter dir   .  Toggle show hidden\n"
              "e/  Filter          Ins, ^I  Toggle nav-as-you-type\n"
              "eb  Pin current dir      ^W  Go to pinned dir\n"
-             "ed  Toggle detail view   ^T  Next active context\n"
-         "a`, ^/  Leader key      LeaderN  Go to context N\n"
+       "8Tab, ^T  Next active context   d  Toggle detail view\n"
+         "a`, ^/  Leader key      LeaderN  Go to/create context N\n"
            "cEsc  Exit prompt          ^L  Redraw, clear prompt\n"
             "d^G  Quit and cd           q  Quit context\n"
          "aQ, ^Q  Quit                  ?  Help, config\n"
@@ -2065,8 +2065,8 @@ static int show_help(char *path)
             "d^F  Extract archive    m, M  Brief/full media info\n"
              "ee  Edit in EDITOR        p  Open in PAGER\n"
 "1ORDER\n"
-            "d^J  Toggle du mode        S  Toggle apparent size\n"
-             "es  Toggle sort by size   t  Toggle sort by mtime\n"
+            "d^J  Disk usage            S  Apparent du\n"
+             "es  Size                  t  Modification time\n"
 "1MISC\n"
              "eo  Launch GUI app    !, ^]  Spawn SHELL in dir\n"
              "eR  Run custom script     L  Lock terminal\n"};
index c8a2cc9b0c8b8393e07f2ddfdd0d6476ae59a966..58a3ab0fb3a6b307a1e4908ba2938dae051c162c 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -155,6 +155,7 @@ static struct key bindings[] = {
        { CONTROL('_'),   SEL_LEADER,    "",     "" },
        { '`',            SEL_LEADER,    "",     "" },
        /* Cycle contexts in forward direction */
+       { '\t',           SEL_CYCLE,     "",     "" },
        { CONTROL('T'),   SEL_CYCLE,     "",     "" },
        /* Mark a path to visit later */
        { 'b',            SEL_PIN,       "",     "" },