]> Sergey Matveev's repositories - nnn.git/commitdiff
Place "$nnn" in double quotes in man page examples
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 28 Jan 2023 03:01:25 +0000 (08:31 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 28 Jan 2023 03:01:25 +0000 (08:31 +0530)
nnn.1

diff --git a/nnn.1 b/nnn.1
index 7b736a25f82c787095e58fc78542af93cd6738f8..61532ab573e22c6fbd050f404b3e692d815f51e3 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -456,18 +456,18 @@ separated by \fI;\fR:
     ------------------------------------ + -------------------------------------------------
                 Key:Command              |                   Description
     ------------------------------------ + -------------------------------------------------
-    c:!convert $nnn png:- | xclip -sel \ | Copy image to clipboard
-       clipboard -t image/png*           |
+    c:!convert "$nnn" png:- | xclip      | Copy image to clipboard
+       -sel clipboard -t image/png*      |
     C:!cp -rv "$nnn" "$nnn".cp*          | Create a copy of the hovered file
-    e:-!sudo -E vim $nnn*                | Edit file as root in vim
+    e:-!sudo -E vim "$nnn"*              | Edit file as root in vim
     g:-!git diff                         | Show git diff
-    h:-!hx $nnn*                         | Open hovered file in hx hex editor
-    k:-!fuser -kiv $nnn*                 | Interactively kill process(es) using hovered file
+    h:-!hx "$nnn"*                       | Open hovered file in hx hex editor
+    k:-!fuser -kiv "$nnn"*               | Interactively kill process(es) using hovered file
     l:-!git log                          | Show git log
     n:-!vi /home/user/Dropbox/dir/note*  | Take quick notes in a synced file/dir of notes
-    p:-!less -iR $nnn*                   | Page through hovered file in less
-    s:-!&smplayer -minigui $nnn          | Play hovered media file, even unfinished download
-    x:!chmod +x $nnn                     | Make the hovered file executable
+    p:-!less -iR "$nnn"*                 | Page through hovered file in less
+    s:-!&smplayer -minigui "$nnn"        | Play hovered media file, even unfinished download
+    x:!chmod +x "$nnn"                   | Make the hovered file executable
     y:-!sync*                            | Flush cached writes
     ------------------------------------ + -------------------------------------------------