Add Space as 2nd file-path copier key (easy to use)

This commit is contained in:
Arun Prakash Jana 2018-06-27 20:38:41 +05:30
parent e2d532416a
commit 9a7660fb62
No known key found for this signature in database
GPG Key ID: A75979F35C080412
4 changed files with 4 additions and 3 deletions

View File

@ -244,7 +244,7 @@ optional arguments:
f | Archive entry
F | List archive
^F | Extract archive
^K | Copy file path
Space, ^K | Copy file path
^Y | Toggle multi-copy
^T | Toggle path quote
^L | Redraw, clear prompt

2
nnn.1
View File

@ -105,7 +105,7 @@ Archive current entry
List files in archive
.It Ic ^F
Extract archive in current directory
.It Ic ^K
.It Ic Space, ^K
Invoke file path copier
.It Ic ^Y
Toggle multiple file path copy mode

2
nnn.c
View File

@ -1952,7 +1952,7 @@ show_help(char *path)
"ef | Archive entry\n"
"eF | List 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^T | Toggle path quote\n"
"d^L | Redraw, clear prompt\n"

1
nnn.h
View File

@ -156,6 +156,7 @@ static struct key bindings[] = {
{ KEY_F(5), SEL_REDRAW, "", "" }, /* Undocumented */
/* Copy currently selected file path */
{ CONTROL('K'), SEL_COPY, "", "" },
{ ' ', SEL_COPY, "", "" },
/* Toggle copy multiple file paths */
{ CONTROL('Y'), SEL_COPYMUL, "", "" },
/* Toggle quote on while copy */