From: Arun Prakash Jana <engineerarun@gmail.com>
Date: Tue, 27 Nov 2018 13:07:31 +0000 (+0530)
Subject: Use keybind ^T to go to next context
X-Git-Tag: v2.2~115
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=28eb6a631296c625d37d0675273779b759b02768;p=nnn.git

Use keybind ^T to go to next context
---

diff --git a/README.md b/README.md
index 6faccaaf..4e0c6755 100644
--- 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 1379f806..998529c5 100644
--- 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
diff --git a/src/nnn.c b/src/nnn.c
index 6904567c..e7733a9c 100644
--- 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"
diff --git a/src/nnn.h b/src/nnn.h
index f6c8a148..03b30404 100644
--- 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 */