diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-10-10 19:24:42 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-10-10 19:26:08 +0530 |
commit | b42efcbb1f774d801a46507887de4e023a96476d (patch) | |
tree | aa493cb4dcac868fb2094dc5ea3282ae8d4d2636 | |
parent | b7c2ce741a207f82a51443b49d953508e64165e4 (diff) | |
download | nnn-b42efcbb1f774d801a46507887de4e023a96476d.tar.gz |
Document edit selection
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | nnn.1 | 6 | ||||
-rw-r--r-- | src/nnn.c | 3 |
3 files changed, 8 insertions, 4 deletions
@@ -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 @@ -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" |