Add example to copy image to clipboard (#1199)

This commit is contained in:
Arun Prakash Jana 2021-10-18 02:48:46 +05:30
parent 4dc70f4a3f
commit acfec62a13
2 changed files with 17 additions and 14 deletions

30
nnn.1
View file

@ -416,20 +416,22 @@ separated by \fI;\fR:
export NNN_PLUG='m:-!|mediainfo $nnn;t:-!|tree -ps;l:-!|ls -lah --group-directories-first' export NNN_PLUG='m:-!|mediainfo $nnn;t:-!|tree -ps;l:-!|ls -lah --group-directories-first'
EXAMPLES: EXAMPLES:
----------------------------------- + ------------------------------------------------- ------------------------------------ + -------------------------------------------------
Key:Command | Description Key:Command | Description
----------------------------------- + ------------------------------------------------- ------------------------------------ + -------------------------------------------------
e:-!sudo -E vim $nnn* | Edit file as root in vim c:!convert $nnn png:- | xclip -sel \ | Copy image to clipboard
g:-!git diff | Show git diff clipboard -t image/png* |
h:-!hx $nnn* | Open hovered file in hx hex editor e:-!sudo -E vim $nnn* | Edit file as root in vim
k:-!fuser -kiv $nnn* | Interactively kill process(es) using hovered file g:-!git diff | Show git diff
l:-!git log | Show git log h:-!hx $nnn* | Open hovered file in hx hex editor
n:-!vi /home/user/Dropbox/dir/note* | Take quick notes in a synced file/dir of notes k:-!fuser -kiv $nnn* | Interactively kill process(es) using hovered file
p:-!less -iR $nnn* | Page through hovered file in less l:-!git log | Show git log
s:-!&smplayer -minigui $nnn | Play hovered media file, even unfinished download n:-!vi /home/user/Dropbox/dir/note* | Take quick notes in a synced file/dir of notes
x:!chmod +x $nnn | Make the hovered file executable p:-!less -iR $nnn* | Page through hovered file in less
y:-!sync* | Flush cached writes 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 Online docs: https://github.com/jarun/nnn/tree/master/plugins
.Ed .Ed

View file

@ -187,6 +187,7 @@ Notes:
| Key:Command | Description | | 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 | | `e:-!sudo -E vim $nnn*` | Edit file as root in vim |
| `g:-!git diff` | Show git diff | | `g:-!git diff` | Show git diff |
| `h:-!hx $nnn*` | Open hovered file in [hx](https://github.com/krpors/hx) hex editor | | `h:-!hx $nnn*` | Open hovered file in [hx](https://github.com/krpors/hx) hex editor |