aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-15 19:04:14 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-15 19:04:14 +0530
commit229b1eba91203398306f36832563e4b6fefa41ad (patch)
tree5d8bd18137aba83498a23a06839e21c1bc99e5b4
parentdbac97f893fcb2038810c39d523801302f6b739c (diff)
downloadnnn-229b1eba91203398306f36832563e4b6fefa41ad.tar.gz
Use ^W to visit pinned directory.
Turns out ^B is also intercepted by Windows.
-rw-r--r--README.md2
-rw-r--r--nnn.12
-rw-r--r--src/nnn.c2
-rw-r--r--src/nnn.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 312350d..11646fd 100644
--- a/README.md
+++ b/README.md
@@ -217,7 +217,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
←, Bksp, h, ^H Parent dir - Last visited dir
→, ↵, l, ^M Open file/enter dir . Toggle show hidden
/ Filter Ins, ^I Toggle nav-as-you-type
- b Pin current dir ^B Go to pinned dir
+ b Pin current dir ^W Go to pinned dir
`, ^/ Leader key LeaderN Switch 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 6ef22bc..19aa7d5 100644
--- a/nnn.1
+++ b/nnn.1
@@ -61,7 +61,7 @@ Change filter (more information below)
Toggle navigate-as-you-type mode
.It Ic b
Pin current directory
-.It Ic ^B
+.It Ic ^W
Visit pinned directory
.It Ic `, ^/
Leader key
diff --git a/src/nnn.c b/src/nnn.c
index e59789f..5b226b0 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1964,7 +1964,7 @@ static int show_help(char *path)
"1←, Bksp, h, ^H Parent dir - Last visited dir\n"
"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 ^B Go to pinned dir\n"
+ "eb Pin current dir ^W Go to pinned dir\n"
"a`, ^/ Leader key LeaderN Switch 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 e79c43c..f001d9b 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -155,7 +155,7 @@ static struct key bindings[] = {
/* Mark a path to visit later */
{ 'b', SEL_PIN, "", "" },
/* Visit marked directory */
- { CONTROL('B'), SEL_VISIT, "", "" },
+ { CONTROL('W'), SEL_VISIT, "", "" },
/* Filter */
{ '/', SEL_FLTR, "", "" },
/* Toggle filter mode */