Skip to content

Commit

Permalink
Add example to copy image to clipboard (jarun#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Oct 17, 2021
1 parent 4dc70f4 commit acfec62
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
30 changes: 16 additions & 14 deletions nnn.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit acfec62

Please sign in to comment.