aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-10 19:42:09 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-11 05:00:32 +0530
commit598bf6368654d04902d54a6a0d964243e1a22536 (patch)
tree76c327391a25645a26577006a16ff57946e2d06b
parent0f7cdfb3b2e66155a9d88b9713b7fa335ea1777a (diff)
downloadnnn-598bf6368654d04902d54a6a0d964243e1a22536.tar.gz
List copy buffer if valid
-rw-r--r--README.md5
-rw-r--r--nnn.14
-rw-r--r--src/nnn.c2
3 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 32a1374..0535323 100644
--- a/README.md
+++ b/README.md
@@ -377,12 +377,13 @@ Use <kbd>^K</kbd> to copy the absolute path (from `/`) of the file under the cur
To copy multiple file paths, switch to the multi-copy mode using <kbd>^Y</kbd>. In this mode you can
-- select multiple files one by one by pressing <kbd>^K</kbd> on each entry; or,
+- cherry-pick individual files one by one by pressing <kbd>^K</kbd> 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 <kbd>^Y</kbd> again copies the paths to clipboard and exits the multi-copy mode.
+To list the file paths copied to memory press <kbd>y</kbd>.
+
To wrap each file path within single quotes, export `NNN_QUOTE_ON`:
export NNN_QUOTE_ON=1
diff --git a/nnn.1 b/nnn.1
index 82b4732..b8c159c 100644
--- a/nnn.1
+++ b/nnn.1
@@ -222,11 +222,13 @@ NNN_COPIER is set (see ENVIRONMENT section below).
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 <kbd>^K</kbd> 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 e49493f..db2d693 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3040,7 +3040,7 @@ nochange:
printmsg("multi-copy off");
goto nochange;
case SEL_COPYLIST:
- if (cfg.copymode)
+ if (copybufpos)
showcplist();
else
printmsg("multi-copy off");