mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add Space as 2nd file-path copier key (easy to use)
This commit is contained in:
parent
e2d532416a
commit
9a7660fb62
|
@ -244,7 +244,7 @@ optional arguments:
|
||||||
f | Archive entry
|
f | Archive entry
|
||||||
F | List archive
|
F | List archive
|
||||||
^F | Extract archive
|
^F | Extract archive
|
||||||
^K | Copy file path
|
Space, ^K | Copy file path
|
||||||
^Y | Toggle multi-copy
|
^Y | Toggle multi-copy
|
||||||
^T | Toggle path quote
|
^T | Toggle path quote
|
||||||
^L | Redraw, clear prompt
|
^L | Redraw, clear prompt
|
||||||
|
|
2
nnn.1
2
nnn.1
|
@ -105,7 +105,7 @@ Archive current entry
|
||||||
List files in archive
|
List files in archive
|
||||||
.It Ic ^F
|
.It Ic ^F
|
||||||
Extract archive in current directory
|
Extract archive in current directory
|
||||||
.It Ic ^K
|
.It Ic Space, ^K
|
||||||
Invoke file path copier
|
Invoke file path copier
|
||||||
.It Ic ^Y
|
.It Ic ^Y
|
||||||
Toggle multiple file path copy mode
|
Toggle multiple file path copy mode
|
||||||
|
|
2
nnn.c
2
nnn.c
|
@ -1952,7 +1952,7 @@ show_help(char *path)
|
||||||
"ef | Archive entry\n"
|
"ef | Archive entry\n"
|
||||||
"eF | List archive\n"
|
"eF | List archive\n"
|
||||||
"d^F | Extract archive\n"
|
"d^F | Extract archive\n"
|
||||||
"d^K | Copy file path\n"
|
"6Space, ^K | Copy file path\n"
|
||||||
"d^Y | Toggle multi-copy\n"
|
"d^Y | Toggle multi-copy\n"
|
||||||
"d^T | Toggle path quote\n"
|
"d^T | Toggle path quote\n"
|
||||||
"d^L | Redraw, clear prompt\n"
|
"d^L | Redraw, clear prompt\n"
|
||||||
|
|
1
nnn.h
1
nnn.h
|
@ -156,6 +156,7 @@ static struct key bindings[] = {
|
||||||
{ KEY_F(5), SEL_REDRAW, "", "" }, /* Undocumented */
|
{ KEY_F(5), SEL_REDRAW, "", "" }, /* Undocumented */
|
||||||
/* Copy currently selected file path */
|
/* Copy currently selected file path */
|
||||||
{ CONTROL('K'), SEL_COPY, "", "" },
|
{ CONTROL('K'), SEL_COPY, "", "" },
|
||||||
|
{ ' ', SEL_COPY, "", "" },
|
||||||
/* Toggle copy multiple file paths */
|
/* Toggle copy multiple file paths */
|
||||||
{ CONTROL('Y'), SEL_COPYMUL, "", "" },
|
{ CONTROL('Y'), SEL_COPYMUL, "", "" },
|
||||||
/* Toggle quote on while copy */
|
/* Toggle quote on while copy */
|
||||||
|
|
Loading…
Reference in a new issue