aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-07 09:14:25 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-07 09:14:25 +0530
commitafb6a7ab0481cdfc9d4d44b2aeaf2778e6a781c8 (patch)
tree863049ed67515852d69a90bde750cfe929a53745
parentf7c5a2924d4fd5ebefca5fe54bceaf1c9cbaeb6e (diff)
downloadnnn-afb6a7ab0481cdfc9d4d44b2aeaf2778e6a781c8.tar.gz
Change bookmark prompt and pin dir keys.
New keys: - bookmark prompt (^B) - pin directory (B) The intention of the change is to facilitate opening the bookmark prompt in navigate-as-you-type mode. The bookmark prompt is used more than the pin current directory option.
-rw-r--r--README.md4
-rw-r--r--nnn.14
-rw-r--r--nnn.c4
-rw-r--r--nnn.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index c44d39d..181c307 100644
--- a/README.md
+++ b/README.md
@@ -226,8 +226,8 @@ optional arguments:
/ | Filter dir contents
^/ | Open desktop search tool
. | Toggle hide . files
- b | Bookmark prompt
- ^B | Pin current dir
+ ^B | Bookmark prompt
+ B | Pin current dir
^V | Go to pinned dir
c | Change dir prompt
d | Toggle detail view
diff --git a/nnn.1 b/nnn.1
index 95b0ed2..8307602 100644
--- a/nnn.1
+++ b/nnn.1
@@ -62,9 +62,9 @@ Change filter (more information below)
Search directory in desktop search tool
.It Ic \&.
Toggle hide .dot files
-.It Ic b
-Show bookmark key prompt
.It Ic ^B
+Show bookmark key prompt
+.It Ic B
Pin current directory
.It Ic ^V
Visit pinned directory
diff --git a/nnn.c b/nnn.c
index f1422e3..76c302d 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1716,8 +1716,8 @@ show_help(char *path)
"e/ | Filter dir contents\n"
"d^/ | Open desktop search tool\n"
"e. | Toggle hide . files\n"
- "eb | Bookmark prompt\n"
- "d^B | Pin current dir\n"
+ "d^B | Bookmark prompt\n"
+ "eB | Pin current dir\n"
"d^V | Go to pinned dir\n"
"ec | Change dir prompt\n"
"ed | Toggle detail view\n"
diff --git a/nnn.h b/nnn.h
index fde2f39..5cea1ad 100644
--- a/nnn.h
+++ b/nnn.h
@@ -106,9 +106,9 @@ static struct key bindings[] = {
/* Last visited dir */
{ '-', SEL_CDLAST, "", "" },
/* Change dir using bookmark */
- { 'b', SEL_CDBM, "", "" },
+ { CONTROL('B'), SEL_CDBM, "", "" },
/* Mark a path to visit later */
- { CONTROL('B'), SEL_PIN, "", "" },
+ { 'B', SEL_PIN, "", "" },
/* Visit marked directory */
{ CONTROL('V'), SEL_VISIT, "", "" },
/* Filter */