]> Sergey Matveev's repositories - nnn.git/commitdiff
Use keybind ^T to go to next context
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 27 Nov 2018 13:07:31 +0000 (18:37 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 27 Nov 2018 13:07:31 +0000 (18:37 +0530)
README.md
nnn.1
src/nnn.c
src/nnn.h

index 6faccaaf30c88635870c5ae83e770fde55e4e75d..4e0c6755eb1c27640df44ecbbb5f95ec3360dc18 100644 (file)
--- a/README.md
+++ b/README.md
@@ -221,7 +221,7 @@ 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   ^B  Next active context
+              d  Toggle detail view   ^T  Next active context
           `, ^/  Leader key      LeaderN  Go to context N
             Esc  Exit prompt          ^L  Redraw, clear prompt
              ^G  Quit and cd           q  Quit context
diff --git a/nnn.1 b/nnn.1
index 1379f80677d531d597ca601ebc475a0576ec5e1b..998529c54cda4a80789d928ec2b71aa51ea45e2d 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -64,7 +64,9 @@ Toggle navigate-as-you-type mode
 Pin current directory
 .It Ic ^W
 Visit pinned directory
-.It Ic ^B
+.It Ic d
+Toggle detail view
+.It Ic ^T
 Next active context
 .It Ic `, ^/
 Leader key
@@ -93,8 +95,6 @@ Open with an application
 Create a new file or directory
 .It Ic D
 Show entry details
-.It Ic d
-Toggle detail view
 .It Ic ^R
 Rename selected entry
 .It Ic r
index 6904567c80d7b336599b0d4f4a56b2f3a9c4e0c9..e7733a9ca8cc1c47310a306f8db4b26e61a6e178 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1965,7 +1965,7 @@ 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   ^B  Next active context\n"
+             "ed  Toggle detail view   ^T  Next active context\n"
          "a`, ^/  Leader key      LeaderN  Go to context N\n"
            "cEsc  Exit prompt          ^L  Redraw, clear prompt\n"
             "d^G  Quit and cd           q  Quit context\n"
index f6c8a148b37d22f2940d93a86e27a75a4fc0062a..03b30404cc1a62fad98e3d6b0f14fa56b60149ed 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -154,7 +154,7 @@ static struct key bindings[] = {
        { CONTROL('_'),   SEL_LEADER,    "",     "" },
        { '`',            SEL_LEADER,    "",     "" },
        /* Cycle contexts in forward direction */
-       { CONTROL('B'),   SEL_CYCLE,     "",     "" },
+       { CONTROL('T'),   SEL_CYCLE,     "",     "" },
        /* Mark a path to visit later */
        { 'b',            SEL_PIN,       "",     "" },
        /* Visit marked directory */