]> Sergey Matveev's repositories - nnn.git/commitdiff
Add example to copy image to clipboard (#1199)
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Oct 2021 21:18:46 +0000 (02:48 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Oct 2021 21:19:36 +0000 (02:49 +0530)
nnn.1
plugins/README.md

diff --git a/nnn.1 b/nnn.1
index e2cc072cd8afb60bf7397194852b6dbbe0017051..960f88fc0a85e387f7f67c79a6386c275d844876 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -416,20 +416,22 @@ separated by \fI;\fR:
         export NNN_PLUG='m:-!|mediainfo $nnn;t:-!|tree -ps;l:-!|ls -lah --group-directories-first'
 
     EXAMPLES:
-    ----------------------------------- + -------------------------------------------------
-                Key:Command             |                   Description
-    ----------------------------------- + -------------------------------------------------
-    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
-    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
-    y:-!sync*                           | Flush cached writes
-    ----------------------------------- + -------------------------------------------------
+    ------------------------------------ + -------------------------------------------------
+                Key:Command              |                   Description
+    ------------------------------------ + -------------------------------------------------
+    c:!convert $nnn png:- | xclip -sel \ | Copy image to clipboard
+       clipboard -t image/png*           |
+    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
+    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
+    y:-!sync*                            | Flush cached writes
+    ------------------------------------ + -------------------------------------------------
 
     Online docs: https://github.com/jarun/nnn/tree/master/plugins
 .Ed
index 6d2621db80addd2e22a00001f933759c1d5923b0..d48c98b4f6d75f2741cad081c87296d50781e73d 100644 (file)
@@ -187,6 +187,7 @@ Notes:
 
 | Key:Command | Description |
 |---|---|
+| `c:!convert $nnn png:- | xclip -sel clipboard -t image/png*` | Copy image to clipboard |
 | `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](https://github.com/krpors/hx) hex editor |