]> Sergey Matveev's repositories - nnn.git/commitdiff
Run cmd as plugin now supported exported variables
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 28 Jan 2023 04:31:46 +0000 (10:01 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 28 Jan 2023 04:31:46 +0000 (10:01 +0530)
nnn.1
plugins/README.md

diff --git a/nnn.1 b/nnn.1
index 7025d6a4660da41fe916626e7c303aeaaf0d29f2..9d6d813daf4702e69ac1e726676cea36286ffec7 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -429,7 +429,7 @@ separated by \fI;\fR:
     To run a plugin at startup, use the option `-P` followed by the plugin key.
 
     NOTES:
-    1. Place $nnn in double quotes (\fB"$nnn"\fR)
+    1. Place $nnn (or exported variables) in double quotes (\fB"$nnn"\fR)
     2. Use single quotes for $NNN_PLUG so "$nnn" is not interpreted
     3. (Again) add \fB!\fR before the command
     4. To disable directory refresh after running a \fIcommand as plugin\fR,
index 5d749c1733e7d6b73223fa29ef060e47fb16adfc..460f2af9558032f233b2d05857635e9441b91347 100644 (file)
@@ -180,7 +180,7 @@ export NNN_PLUG='m:-!|mediainfo "$nnn";t:-!|tree -ps;l:-!|ls -lah --group-direct
 This option is incompatible with `&` (terminal output is masked for GUI programs) and ignores `*` (output is already paged for user).
 
 Notes:
-1. Place `$nnn` in double quotes (**`"$nnn"`**)
+1. Place `$nnn` (or exported variables) in double quotes (**`"$nnn"`**)
 2. Use single quotes for `$NNN_PLUG` so `"$nnn"` is not interpreted
 3. (_Again_) add `!` before the command
 4. To disable directory refresh after running a _command as plugin_, prefix with `-!`