README.md | 5 +++-- nnn.1 | 4 +++- src/nnn.c | 2 +- diff --git a/README.md b/README.md index 32a13741a162d48b2840e0b36451e3459657548b..05353235bcdfbc15abd785eeb7ab203e3690f355 100644 --- a/README.md +++ b/README.md @@ -377,11 +377,12 @@ Use ^K to copy the absolute path (from `/`) of the file under the cursor to clipboard. To copy multiple file paths, switch to the multi-copy mode using ^Y. In this mode you can -- select multiple files one by one by pressing ^K on each entry; or, +- cherry-pick individual files one by one by pressing ^K on each entry; or, - navigate to another file in the same directory to select a range of files. -- list the currently copied file paths by pressing `y`. Pressing ^Y again copies the paths to clipboard and exits the multi-copy mode. + +To list the file paths copied to memory press y. To wrap each file path within single quotes, export `NNN_QUOTE_ON`: diff --git a/nnn.1 b/nnn.1 index 82b47329e7937f4581f94529121601810ea57855..b8c159c7155ac4790a4c51b0c0e9ade6baa42c1b 100644 --- a/nnn.1 +++ b/nnn.1 @@ -222,11 +222,13 @@ .Pp To copy multiple file paths the multi-copy mode should be enabled using \fI^Y\fR. In this mode it's possible to .Pp -(1) select multiple files one by one by pressing \fI^K\fR on each entry; or, +(1) cherry-pick individual files one by one by pressing ^K on each entry; or, .br (2) navigate to another file in the same directory to select a range of files. .Pp Pressing \fI^Y\fR again copies the paths to clipboard and exits the multi-copy mode. +.Pp +To list the file paths copied to memory press \fIy\fR. .Sh ENVIRONMENT The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence when dealing with the !, e and p commands respectively. diff --git a/src/nnn.c b/src/nnn.c index e49493f8df324c05071ad1cc395ab00d1951ba71..db2d693e113ffae0a6937c9f9ec422260f89b63e 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3040,7 +3040,7 @@ } else printmsg("multi-copy off"); goto nochange; case SEL_COPYLIST: - if (cfg.copymode) + if (copybufpos) showcplist(); else printmsg("multi-copy off");