Change visit pinned dir key to ^B.

^V does not work while working on Windows. It is intercepted as paste.
This commit is contained in:
Arun Prakash Jana 2018-11-14 20:08:30 +05:30
parent ce0a9a6ab3
commit ff0999b801
No known key found for this signature in database
GPG key ID: A75979F35C080412
4 changed files with 4 additions and 4 deletions

View file

@ -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 ^V Go to pinned dir
b Pin current dir ^B 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

2
nnn.1
View file

@ -61,7 +61,7 @@ Change filter (more information below)
Toggle navigate-as-you-type mode
.It Ic b
Pin current directory
.It Ic ^V
.It Ic ^B
Visit pinned directory
.It Ic `, ^/
Leader key

View file

@ -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 ^V Go to pinned dir\n"
"eb Pin current dir ^B 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"

View file

@ -155,7 +155,7 @@ static struct key bindings[] = {
/* Mark a path to visit later */
{ 'b', SEL_PIN, "", "" },
/* Visit marked directory */
{ CONTROL('V'), SEL_VISIT, "", "" },
{ CONTROL('B'), SEL_VISIT, "", "" },
/* Filter */
{ '/', SEL_FLTR, "", "" },
/* Toggle filter mode */