mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add key 'K' to toggle selection
This commit is contained in:
parent
1a8df74749
commit
42e36e85ee
|
@ -255,7 +255,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
|
||||||
^O Open with... n Create new/link
|
^O Open with... n Create new/link
|
||||||
D File details ^R Rename entry
|
D File details ^R Rename entry
|
||||||
⎵ ^K Select entry r Open dir in vidir
|
⎵ ^K Select entry r Open dir in vidir
|
||||||
^Y Toggle selection y List selection
|
K ^Y Toggle selection y List selection
|
||||||
Y Select all
|
Y Select all
|
||||||
P Copy selection X Delete selection
|
P Copy selection X Delete selection
|
||||||
V Move selection ^X Delete entry
|
V Move selection ^X Delete entry
|
||||||
|
|
2
nnn.1
2
nnn.1
|
@ -98,7 +98,7 @@ Show entry details
|
||||||
Rename selected entry
|
Rename selected entry
|
||||||
.It Ic r
|
.It Ic r
|
||||||
Open directory in vidir
|
Open directory in vidir
|
||||||
.It Ic Y, ^Y
|
.It Ic K, ^Y
|
||||||
Toggle selection mode
|
Toggle selection mode
|
||||||
.It Ic Y
|
.It Ic Y
|
||||||
Select all entries in dir
|
Select all entries in dir
|
||||||
|
|
|
@ -2420,7 +2420,7 @@ static bool show_help(char *path)
|
||||||
"b^O Open with... n Create new/link\n"
|
"b^O Open with... n Create new/link\n"
|
||||||
"cD File details ^R Rename entry\n"
|
"cD File details ^R Rename entry\n"
|
||||||
"9⎵ ^K Select entry r Open dir in vidir\n"
|
"9⎵ ^K Select entry r Open dir in vidir\n"
|
||||||
"b^Y Toggle selection y List selection\n"
|
"9K ^Y Toggle selection y List selection\n"
|
||||||
"cY Select all\n"
|
"cY Select all\n"
|
||||||
"cP Copy selection X Delete selection\n"
|
"cP Copy selection X Delete selection\n"
|
||||||
"cV Move selection ^X Delete entry\n"
|
"cV Move selection ^X Delete entry\n"
|
||||||
|
|
|
@ -189,6 +189,7 @@ static struct key bindings[] = {
|
||||||
{ CONTROL('K'), SEL_COPY },
|
{ CONTROL('K'), SEL_COPY },
|
||||||
{ ' ', SEL_COPY },
|
{ ' ', SEL_COPY },
|
||||||
/* Toggle copy multiple file paths */
|
/* Toggle copy multiple file paths */
|
||||||
|
{ 'K', SEL_COPYMUL },
|
||||||
{ CONTROL('Y'), SEL_COPYMUL },
|
{ CONTROL('Y'), SEL_COPYMUL },
|
||||||
/* Select all files in current dir */
|
/* Select all files in current dir */
|
||||||
{ 'Y', SEL_COPYALL },
|
{ 'Y', SEL_COPYALL },
|
||||||
|
|
Loading…
Reference in a new issue