]> Sergey Matveev's repositories - nnn.git/commitdiff
Document edit selection
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 10 Oct 2019 13:54:42 +0000 (19:24 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 10 Oct 2019 13:56:08 +0000 (19:26 +0530)
README.md
nnn.1
src/nnn.c

index a9d6d6654570654fec768ebb3087cedcbe27c797..0de6ab8165eedf91586d156e3340416cc1c113bb 100644 (file)
--- 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 03e2b248ffb25daddb0d5c01c95f5e66d29ec113..b1643d99c3729084863b03b421864931cbb9936d 100644 (file)
--- 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
index fe2345018a6e813bcc259f79140ab45af542c502..374811da7a710a443d6e87134ba7586409291156 100644 (file)
--- 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"