aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.1
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-03-11 04:39:57 +0100
committerGravatar GitHub <noreply@github.com>2020-03-11 09:09:57 +0530
commitc9a17d80be4f14ce22273532372028f7861bd74a (patch)
tree2a10b3732cbc20bd5e22c12b5354cea6bb675795 /nnn.1
parent3a9ddbd90fdb349cc451d6fef8219e2487e942c3 (diff)
downloadnnn-c9a17d80be4f14ce22273532372028f7861bd74a.tar.gz
Add middle click copy (#491)
* Add middle click copy * Make middle click action configurable This introduces the NNN_MIDDLECLICK environment variable, containing the key that middle mouse click emulates. Only the first character is read. * Document NNN_MIDDLECLICK in nnn.1 * Use NNN_MCLICK instead of NNN_MIDDLECLICK * Add '^key' syntax to set middle click to Ctrl+Key
Diffstat (limited to 'nnn.1')
-rw-r--r--nnn.112
1 files changed, 12 insertions, 0 deletions
diff --git a/nnn.1 b/nnn.1
index 3682e09..28e069d 100644
--- a/nnn.1
+++ b/nnn.1
@@ -375,6 +375,18 @@ separated by \fI;\fR:
export NNN_TRASH=1
.Ed
.Pp
+\fBNNN_MCLICK:\fR key emulated by a middle mouse click.
+.Bd -literal
+ export NNN_MCLICK='p'
+
+ NOTES:
+ 1. You can use the '^\fIkey\fR' syntax to assign it to a \fICtrl+key\fR combo, e.g.:
+
+ export NNN_MCLICK='^A'
+
+ 2. Otherwise, only the first character is taken into account.
+.Ed
+.Pp
\fBnnn:\fR this is a special variable set to the hovered entry before executing
a command from the command prompt or spawning a shell.
.Sh KNOWN ISSUES