Skip to content

Commit

Permalink
docs: add tip for copying selected files to the system clipboard whil…
Browse files Browse the repository at this point in the history
…e yanking
  • Loading branch information
sxyazi committed Jan 26, 2024
1 parent 4762eb7 commit 9104398
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,19 @@ Original post: https://github.com/sxyazi/yazi/discussions/327

Please make sure that `<C-n>` does not conflict with your other keys.

## Copy selected files to the system clipboard while yanking

Yazi allows multiple commands to be bound to a single key, so you can set `y` to not only do the `yank` but also execute a shell script:

```toml
{
on = [ "y" ],
exec = [ "yank", '''
shell --confirm 'echo "$@" | xclip -i -selection clipboard -t text/uri-list'
''' ]
}
```

## No status bar

<img src={useBaseUrl("/img/no-status-bar.jpg")} width="600" />
Expand Down

0 comments on commit 9104398

Please sign in to comment.