From 7efc1615af8f09a77c28d826a932a17917877dbb Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 16 Sep 2024 19:22:00 +0800 Subject: [PATCH] docs: tip about image_delay option --- docs/image-preview.md | 2 +- docs/tips.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/image-preview.md b/docs/image-preview.md index a83d6b87..cf0f6963 100644 --- a/docs/image-preview.md +++ b/docs/image-preview.md @@ -97,7 +97,7 @@ Note that Überzug++ might display images in the wrong position; in that case, p ## Why can't I preview images via Überzug++? {#debug-ueberzug} -This may be a problem with Überzug++ itself. Please build Yazi in debug mode [as per this](https://yazi-rs.github.io/docs/installation#build-from-source) but `cargo build` without `--release` flag - you can run `yazi --debug` to verify it, and you will see the output includes `Debug : true`. +This may be a problem with Überzug++ itself. Please build Yazi in debug mode [as per this](/docs/installation#build-from-source) but `cargo build` without `--release` flag - you can run `yazi --debug` to verify it, and you will see the output includes `Debug : true`. And hover on some images, then find the last Überzug++ command in your `~/.local/state/yazi/yazi.log` sorted by time. It is usually at the very end of the file and looks like: diff --git a/docs/tips.md b/docs/tips.md index 55e25ef4..0e422889 100644 --- a/docs/tips.md +++ b/docs/tips.md @@ -369,3 +369,4 @@ While Yazi is already fast, there is still plenty of room for optimization for s - For users managing network files, it's recommended to disable all previewers and preloaders since previewing and preloading these files means they need to be downloaded locally. - For low-spec devices like Raspberry Pi, [reducing the concurrency](/docs/configuration/yazi#tasks) will make Yazi faster since the default configuration is optimized for PCs, and high concurrency on these low-spec devices may have the opposite effect. - For users who don't need accurate mime-type, [`mime-ext.yazi`](https://github.com/yazi-rs/plugins/tree/main/mime-ext.yazi) may be useful, as it simply returns mime-type based on file extensions, while Yazi defaults to obtaining mime-type based on file content for accuracy. Mime-type is used for matching opening, previewing, rendering rules. Encourage users to choose an appropriate `mime` plugin based on their needs, which is why we decided to open it up to plugin developers. +- For high-performance terminal emulators, lowering the [`image_delay` option](/docs/configuration/yazi/#preview.image_delay) or setting it to 0 can reduce image preview latency.