Skip to content

Commit

Permalink
docs: tip about image_delay option
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Sep 16, 2024
1 parent 56b3a86 commit 7efc161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/image-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
1 change: 1 addition & 0 deletions docs/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 7efc161

Please sign in to comment.