MyGit

v0.3.2

sxyazi/yazi

版本发布时间: 2024-08-28 13:15:49

sxyazi/yazi最新发布版本:v0.3.3(2024-09-04 23:58:24)

This version introduces two eagerly awaited new features: a brand-new confirm component, and word wrapping.

Brand-new confirm component

https://github.com/sxyazi/yazi/pull/1167 (thanks to @thelamb) introduces a brand-new confirm component that handles various confirmations (like trashing files, deleting files, overwriting files, and exit confirmations). The goal is to provide a safer and more efficient user experience:

https://github.com/user-attachments/assets/51c5c533-06ab-4661-b9f9-fcdbe8b0324c

Word wrapping

https://github.com/sxyazi/yazi/pull/1159 (thanks to @mskvsk and @ArtyomArtamonov) adds a new wrap option under [preview], which can be set to "no" or "yes". When set to "yes", word wrapping is enabled:

# ~/.config/yazi/yazi.toml
[preview]
wrap = "yes"

Image preview performance optimization

I've been working on optimizing Yazi's image preview speed, and with multi-threading, preloading, and a built-in image decoder, it should already be the fastest among all terminal file managers.

However, I noticed some lag during fast scrolling and realized that at this point, the performance bottleneck isn't Yazi itself, but rather the terminal. When users scroll quickly, Yazi processes the images at a very high speed and sends them to the terminal, but the terminal can't keep up with processing them in time, which gives the impression of lag. In reality, it's not Yazi that's lagging, but the terminal.

https://github.com/sxyazi/yazi/pull/1512 introduces a new image_delay configuration option to address this issue. When previewing images, it will wait at least image_delay milliseconds before starting to send the decoded image data to the terminal.

This gives the terminal a breather and creates the perception that the file list is still scrolling smoothly. Additionally, this can reduce the CPU overhead caused by immediate image decoding during fast scrolling, thereby extending battery life.

Before:

https://github.com/user-attachments/assets/549fc6bb-3dbb-4f4f-ae61-1dd0fa9a88e8

Now:

https://github.com/user-attachments/assets/17d5010c-eae2-4230-bc00-71945f22370b

New --dir option for the create command

The create command is designed to support creating both files and directories (with / or \ at the end to indicate a directory).

However, this isn't user-friendly for those who need to create many directories but few files, as they always have to type / or \.

https://github.com/sxyazi/yazi/pull/1505 (thanks to @abstrakct) introduces a new --dir option that explicitly specifies creating directories without needing to type / or \ every time.

What's Changed

New Contributors

Full Changelog: https://github.com/sxyazi/yazi/compare/v0.3.1...v0.3.2

相关地址:原始地址 下载(tar) 下载(zip)

1、 yazi-aarch64-apple-darwin.zip 5.81MB

2、 yazi-aarch64-pc-windows-msvc.zip 5.83MB

3、 yazi-aarch64-unknown-linux-gnu.zip 6.43MB

4、 yazi-aarch64-unknown-linux-musl.zip 6.42MB

5、 yazi-x86_64-apple-darwin.zip 6.32MB

6、 yazi-x86_64-pc-windows-msvc.zip 6.3MB

7、 yazi-x86_64-unknown-linux-gnu.snap 13.94MB

8、 yazi-x86_64-unknown-linux-gnu.zip 6.84MB

9、 yazi-x86_64-unknown-linux-musl.zip 6.99MB

查看:2024-08-28发行的版本