mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
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.
This commit is contained in:
parent
f7c5a2924d
commit
afb6a7ab04
|
@ -226,8 +226,8 @@ optional arguments:
|
||||||
/ | Filter dir contents
|
/ | Filter dir contents
|
||||||
^/ | Open desktop search tool
|
^/ | Open desktop search tool
|
||||||
. | Toggle hide . files
|
. | Toggle hide . files
|
||||||
b | Bookmark prompt
|
^B | Bookmark prompt
|
||||||
^B | Pin current dir
|
B | Pin current dir
|
||||||
^V | Go to pinned dir
|
^V | Go to pinned dir
|
||||||
c | Change dir prompt
|
c | Change dir prompt
|
||||||
d | Toggle detail view
|
d | Toggle detail view
|
||||||
|
|
4
nnn.1
4
nnn.1
|
@ -62,9 +62,9 @@ Change filter (more information below)
|
||||||
Search directory in desktop search tool
|
Search directory in desktop search tool
|
||||||
.It Ic \&.
|
.It Ic \&.
|
||||||
Toggle hide .dot files
|
Toggle hide .dot files
|
||||||
.It Ic b
|
|
||||||
Show bookmark key prompt
|
|
||||||
.It Ic ^B
|
.It Ic ^B
|
||||||
|
Show bookmark key prompt
|
||||||
|
.It Ic B
|
||||||
Pin current directory
|
Pin current directory
|
||||||
.It Ic ^V
|
.It Ic ^V
|
||||||
Visit pinned directory
|
Visit pinned directory
|
||||||
|
|
4
nnn.c
4
nnn.c
|
@ -1716,8 +1716,8 @@ show_help(char *path)
|
||||||
"e/ | Filter dir contents\n"
|
"e/ | Filter dir contents\n"
|
||||||
"d^/ | Open desktop search tool\n"
|
"d^/ | Open desktop search tool\n"
|
||||||
"e. | Toggle hide . files\n"
|
"e. | Toggle hide . files\n"
|
||||||
"eb | Bookmark prompt\n"
|
"d^B | Bookmark prompt\n"
|
||||||
"d^B | Pin current dir\n"
|
"eB | Pin current dir\n"
|
||||||
"d^V | Go to pinned dir\n"
|
"d^V | Go to pinned dir\n"
|
||||||
"ec | Change dir prompt\n"
|
"ec | Change dir prompt\n"
|
||||||
"ed | Toggle detail view\n"
|
"ed | Toggle detail view\n"
|
||||||
|
|
4
nnn.h
4
nnn.h
|
@ -106,9 +106,9 @@ static struct key bindings[] = {
|
||||||
/* Last visited dir */
|
/* Last visited dir */
|
||||||
{ '-', SEL_CDLAST, "", "" },
|
{ '-', SEL_CDLAST, "", "" },
|
||||||
/* Change dir using bookmark */
|
/* Change dir using bookmark */
|
||||||
{ 'b', SEL_CDBM, "", "" },
|
{ CONTROL('B'), SEL_CDBM, "", "" },
|
||||||
/* Mark a path to visit later */
|
/* Mark a path to visit later */
|
||||||
{ CONTROL('B'), SEL_PIN, "", "" },
|
{ 'B', SEL_PIN, "", "" },
|
||||||
/* Visit marked directory */
|
/* Visit marked directory */
|
||||||
{ CONTROL('V'), SEL_VISIT, "", "" },
|
{ CONTROL('V'), SEL_VISIT, "", "" },
|
||||||
/* Filter */
|
/* Filter */
|
||||||
|
|
Loading…
Reference in a new issue