From baaab56a890a44811fb74f20fdf54d341ecc6380 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 19 Oct 2024 23:01:56 +0800 Subject: [PATCH] docs: update image-preview.md --- docs/image-preview.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/image-preview.md b/docs/image-preview.md index 8014749c..88b7814c 100644 --- a/docs/image-preview.md +++ b/docs/image-preview.md @@ -93,8 +93,8 @@ Currently, only the following 3 terminals support displaying images on Windows: Limited by ConPTY, the Windows edition has had to implement many workarounds, which are not perfect. -However, if you run Yazi in WSL, you can experience perfect image previews using `wezterm ssh`.
-[WezTerm](https://wezfurlong.org/wezterm/) is an excellent terminal that can bypass the limitations of ConPTY through its SSH feature, and it's currently the only terminal that allows this approach. +However, if you run Yazi in WSL, you can experience perfect image previews through [`wezterm ssh`][wezterm-ssh].
+[WezTerm][wezterm] is an excellent terminal that can bypass the limitations of ConPTY through its SSH feature, and it's currently the only terminal that allows this approach. You need to install `sshd` in WSL and start it: @@ -103,7 +103,7 @@ sudo apt install openssh-server sudo service ssh restart ``` -Then, on the host machine, connect to WSL over SSH: +Then, on the _host_ machine, connect to WSL over SSH: ```sh wezterm ssh 127.0.0.1 @@ -111,6 +111,9 @@ wezterm ssh 127.0.0.1 That's it! you can now get Yazi's image preview working properly. +[wezterm]: https://wezfurlong.org/wezterm/ +[wezterm-ssh]: https://wezfurlong.org/wezterm/cli/ssh.html + ## Neovim users {#neovim} The builtin terminal emulator (`:term`) in Neovim [doesn't support any graphic protocols](https://github.com/neovim/neovim/issues/4349), so Yazi will try to fallback to X11/Wayland/Chafa in sequence.