mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Update man
This commit is contained in:
parent
78830781ee
commit
1f0f3fdf01
|
@ -228,7 +228,7 @@ The list below is from the **dev branch**. Press <kbd>?</kbd> in `nnn` to see th
|
||||||
D File details ^R F2 Rename/duplicate
|
D File details ^R F2 Rename/duplicate
|
||||||
Space ^J/a Sel toggle/all r Batch rename
|
Space ^J/a Sel toggle/all r Batch rename
|
||||||
m ^K Sel range, clear M List sel
|
m ^K Sel range, clear M List sel
|
||||||
P Copy sel here K Edit, flush sel
|
P Copy sel here K Edit sel
|
||||||
V Move sel here w Copy/move sel as
|
V Move sel here w Copy/move sel as
|
||||||
X Del sel ^X Del entry
|
X Del sel ^X Del entry
|
||||||
f Archive o ^F Archive ops
|
f Archive o ^F Archive ops
|
||||||
|
|
12
nnn.1
12
nnn.1
|
@ -160,21 +160,19 @@ When there's a unique match and it's a directory,
|
||||||
.Nm
|
.Nm
|
||||||
auto selects the directory and enters it in this mode.
|
auto selects the directory and enters it in this mode.
|
||||||
.Sh SELECTION
|
.Sh SELECTION
|
||||||
There are 3 groups of shortcuts to add files to selection:
|
There are 3 groups of keybinds to add files to selection:
|
||||||
.Pp
|
.Pp
|
||||||
(1) hovered file selection toggle (deselects if '+' is visible before the entry, else adds to selection)
|
(1) hovered file selection toggle (deselects if '+' is visible before the entry, else adds to selection)
|
||||||
.br
|
.br
|
||||||
(2) add a range of files to selection
|
(2) add a range of files to selection (repeat the range key on the same entry twice to clear selection completely)
|
||||||
.br
|
.br
|
||||||
(3) add all files in the current directory to selection
|
(3) add all files in the current directory to selection
|
||||||
.Pp
|
.Pp
|
||||||
The selection can now be listed, copied, moved, removed, archived or linked.
|
A selection can be listed, edited, copied, moved, removed, archived or linked.
|
||||||
.Pp
|
.Pp
|
||||||
Absolute paths of the selected files are copied to the temporary file \fB.selection\fR in the config directory. The path is shown in the help and configuration screen.
|
Absolute paths of the selected files are copied to \fB.selection\fR file in the config directory.
|
||||||
.Pp
|
.Pp
|
||||||
To flush the selection without running any operation use the _edit, flush selection_ key. The list is flushed even if unchanged. Use this key to remove a file from selection after you navigate away from its directory. Flushing doesn't end the selection mode. You can add more files to the selection and edit/flush the list again. Flushing doesn't end the selection mode. You can add more files to the selection and edit/flush the list again.
|
To edit the selection use the _edit selection_ key. Use this key to remove a file from selection after you navigate away from its directory. Editing doesn't end the selection mode. You can add more files to the selection and edit the list again.
|
||||||
.Pp
|
|
||||||
Repeat range selection on the same entry twice to clear selection completely.
|
|
||||||
.Sh FILE SIZE
|
.Sh FILE SIZE
|
||||||
The minimum file size unit is byte (B). The rest are K, M, G, T, P, E, Z, Y (powers of 1024), same as the default units in \fIls\fR.
|
The minimum file size unit is byte (B). The rest are K, M, G, T, P, E, Z, Y (powers of 1024), same as the default units in \fIls\fR.
|
||||||
.Sh ENVIRONMENT
|
.Sh ENVIRONMENT
|
||||||
|
|
|
@ -3489,7 +3489,7 @@ static void show_help(const char *path)
|
||||||
"cD File details ^R F2 Rename/duplicate\n"
|
"cD File details ^R F2 Rename/duplicate\n"
|
||||||
"3Space ^J/a Sel toggle/all r Batch rename\n"
|
"3Space ^J/a Sel toggle/all r Batch rename\n"
|
||||||
"9m ^K Sel range, clear M List sel\n"
|
"9m ^K Sel range, clear M List sel\n"
|
||||||
"cP Copy sel here K Edit, flush sel\n"
|
"cP Copy sel here K Edit sel\n"
|
||||||
"cV Move sel here w Copy/move sel as\n"
|
"cV Move sel here w Copy/move sel as\n"
|
||||||
"cX Del sel ^X Del entry\n"
|
"cX Del sel ^X Del entry\n"
|
||||||
"cf Archive o ^F Archive ops\n"
|
"cf Archive o ^F Archive ops\n"
|
||||||
|
@ -4940,7 +4940,7 @@ nochange:
|
||||||
case SEL_SELEDIT:
|
case SEL_SELEDIT:
|
||||||
r = editselection();
|
r = editselection();
|
||||||
if (r <= 0) {
|
if (r <= 0) {
|
||||||
const char * msg
|
const char *msg
|
||||||
= (!r ? messages[MSG_0_SELECTED] : messages[MSG_FAILED]);
|
= (!r ? messages[MSG_0_SELECTED] : messages[MSG_FAILED]);
|
||||||
printwait(msg, &presel);
|
printwait(msg, &presel);
|
||||||
goto nochange;
|
goto nochange;
|
||||||
|
|
Loading…
Reference in a new issue