mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
List copy buffer if valid
This commit is contained in:
parent
0f7cdfb3b2
commit
598bf63686
|
@ -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
|
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.
|
- 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.
|
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`:
|
To wrap each file path within single quotes, export `NNN_QUOTE_ON`:
|
||||||
|
|
||||||
export NNN_QUOTE_ON=1
|
export NNN_QUOTE_ON=1
|
||||||
|
|
4
nnn.1
4
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.
|
To copy multiple file paths the multi-copy mode should be enabled using \fI^Y\fR.
|
||||||
In this mode it's possible to
|
In this mode it's possible to
|
||||||
.Pp
|
.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
|
.br
|
||||||
(2) navigate to another file in the same directory to select a range of files.
|
(2) navigate to another file in the same directory to select a range of files.
|
||||||
.Pp
|
.Pp
|
||||||
Pressing \fI^Y\fR again copies the paths to clipboard and exits the multi-copy mode.
|
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
|
.Sh ENVIRONMENT
|
||||||
The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
|
The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
|
||||||
when dealing with the !, e and p commands respectively.
|
when dealing with the !, e and p commands respectively.
|
||||||
|
|
|
@ -3040,7 +3040,7 @@ nochange:
|
||||||
printmsg("multi-copy off");
|
printmsg("multi-copy off");
|
||||||
goto nochange;
|
goto nochange;
|
||||||
case SEL_COPYLIST:
|
case SEL_COPYLIST:
|
||||||
if (cfg.copymode)
|
if (copybufpos)
|
||||||
showcplist();
|
showcplist();
|
||||||
else
|
else
|
||||||
printmsg("multi-copy off");
|
printmsg("multi-copy off");
|
||||||
|
|
Loading…
Reference in a new issue