mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Document edit selection
This commit is contained in:
parent
b7c2ce741a
commit
b42efcbb1f
|
@ -205,8 +205,9 @@ The list below is from the **dev branch**. Press <kbd>?</kbd> in `nnn` to see th
|
|||
FILES
|
||||
^O Open with... n Create new/link
|
||||
D File detail ^R F2 Rename/duplicate
|
||||
⎵ ^J / a Sel entry/all r Batch rename
|
||||
⎵ ^J Select entry r Batch rename
|
||||
m ^K Sel range, clear M List selection
|
||||
a Select all K Edit selection
|
||||
P Copy selection X Delete selection
|
||||
V Move selection ^X Delete entry
|
||||
f Create archive C Execute entry
|
||||
|
|
6
nnn.1
6
nnn.1
|
@ -147,9 +147,11 @@ The selection can now be listed, copied, moved, removed, archived or linked.
|
|||
.br
|
||||
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. If \fB$NNN_COPIER\fR is set (see ENVIRONMENT section below) the file paths are also copied to the system clipboard.
|
||||
.Pp
|
||||
Repeat range selection on the same entry to clear selection. Deselecting a single file is not implemented because substantial string processing it would be required if thousands of files are selected. It would have been trivial if the selection was limited to a single directory (use a flag for each file and select the files with the flag set). However,
|
||||
Repeat range selection on the same entry to clear selection. It's also possible to edit the current selection.
|
||||
.Pp
|
||||
Deselecting a single file is not implemented because substantial string processing would be required if thousands of files are selected. It would have been trivial if the selection was limited to a single directory (use a flag for each file and select the files with the flag set). However,
|
||||
.Nm
|
||||
allows selection across directories making it non-trivial to do that. Also, the buffer used to select is a compact one (no byte wasted) so \fBmemmove\fR() would be required to deselect each intermediate file. Considering these, we kept the solution simpler.
|
||||
allows selection across directories making it non-trivial to do that. Also, the buffer used to select is a compact one (no byte wasted) so \fBmemmove\fR() would be required to deselect each intermediate file. Considering these, the alternatives were chosen.
|
||||
.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.
|
||||
.Sh ENVIRONMENT
|
||||
|
|
|
@ -2914,8 +2914,9 @@ static void show_help(const char *path)
|
|||
"1FILES\n"
|
||||
"b^O Open with... n Create new/link\n"
|
||||
"cD File detail ^R F2 Rename/duplicate\n"
|
||||
"5⎵ ^J / a Sel entry/all r Batch rename\n"
|
||||
"9⎵ ^J Select entry r Batch rename\n"
|
||||
"9m ^K Sel range, clear M List selection\n"
|
||||
"ca Select all K Edit selection\n"
|
||||
"cP Copy selection X Delete selection\n"
|
||||
"cV Move selection ^X Delete entry\n"
|
||||
"cf Create archive C Execute entry\n"
|
||||
|
|
Loading…
Reference in a new issue