Update doc on deselect, file size

This commit is contained in:
Arun Prakash Jana 2019-10-09 19:51:51 +05:30
parent 2d50a0db50
commit 84bb0b5bfe
No known key found for this signature in database
GPG key ID: A75979F35C080412

8
nnn.1
View file

@ -141,11 +141,17 @@ There are 3 groups of shortcuts to add files to selection:
.br .br
(3) add all files in the current directory to selection (3) add all files in the current directory to selection
.Pp .Pp
Repeat range selection on the same entry to clear selection. Selected files are visually indicated by a \fI+\fR before the entries. Selected files are visually indicated by a \fI+\fR before the entries.
.br .br
The selection can now be listed, copied, moved, removed, archived or linked. The selection can now be listed, copied, moved, removed, archived or linked.
.br .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. 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,
.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.
.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 .Sh ENVIRONMENT
The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER. when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER.