aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-10-10 19:24:42 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-10-10 19:26:08 +0530
commitb42efcbb1f774d801a46507887de4e023a96476d (patch)
treeaa493cb4dcac868fb2094dc5ea3282ae8d4d2636
parentb7c2ce741a207f82a51443b49d953508e64165e4 (diff)
downloadnnn-b42efcbb1f774d801a46507887de4e023a96476d.tar.gz
Document edit selection
-rw-r--r--README.md3
-rw-r--r--nnn.16
-rw-r--r--src/nnn.c3
3 files changed, 8 insertions, 4 deletions
diff --git a/README.md b/README.md
index a9d6d66..0de6ab8 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/nnn.1 b/nnn.1
index 03e2b24..b1643d9 100644
--- a/nnn.1
+++ b/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
diff --git a/src/nnn.c b/src/nnn.c
index fe23450..374811d 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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"