Skip to content

Commit

Permalink
docs: add xclip / wl-clipboard / xsel as optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Mar 14, 2024
1 parent 836b8a5 commit 52495e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/configuration/yazi.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ This value determines the number of samples used during the training, range 10-2
- ueberzug_scale (Float): Ueberzug image scaling ratio, `scale>1` for enlargement, `scale<1` for reduction. For example, `0.5` indicates a reduction to half.
- ueberzug_offset (`[x, y, width, height]`): Ueberzug image offset, in cell units. For example, `[0.5, 0.5, -0.5, -0.5]` indicates that the image is offset by half a cell in both directions, and the width and height are reduced by half a cell.

This is useful for solving [the bug of Ueberzug image size calculation](https://github.com/jstkdng/ueberzugpp/issues/122).
This is useful for solving [a bug of Überzug++ image size calculation](https://github.com/jstkdng/ueberzugpp/issues/122).

If your monitor has a `2.0` scale factor, and is running on Wayland under Hyprland, you may need to set `ueberzug_scale: 0.5`, and adjust the value of `ueberzug_offset` according to your case, to offset this issue.

Expand Down
2 changes: 1 addition & 1 deletion docs/image-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ That's it! you can now get Yazi's image preview working properly.

## Why can't I preview images via Überzug++?

This may be an issue with Überzug++, please try running `ueberzug layer` directly in the terminal without Yazi, and paste:
This may be an issue with Überzug++, please try running `ueberzugpp layer` directly in the terminal without Yazi, and paste:

```sh
{"action":"add","identifier":"preview","max_height":0,"max_width":0,"path":"/your/image-path.jpg","x":0,"y":0}
Expand Down
3 changes: 3 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Yazi can be _optionally_ extended with other command line tools to enable additi
- [`rg`](https://github.com/BurntSushi/ripgrep) (for file content searching)
- [`fzf`](https://github.com/junegunn/fzf) (for quick file subtree navigation)
- [`zoxide`](https://github.com/ajeetdsouza/zoxide) (for historical directories navigation)
- [`xclip`](https://github.com/astrand/xclip) / [`wl-clipboard`](https://github.com/bugaevc/wl-clipboard) / [`xsel`](https://github.com/kfish/xsel) (for system clipboard support)

If the functions are not working properly, please try upgrading them to the latest version.

## Packaging status

Expand Down

0 comments on commit 52495e1

Please sign in to comment.