Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.3.1
->v0.3.2
Release Notes
sxyazi/yazi (sxyazi/yazi)
v0.3.2
Compare Source
This version introduces two eagerly awaited new features: a brand-new
confirm
component, and word wrapping.Brand-new
confirm
componenthttps://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:Enter
once, instead of typing"y"
and then pressingEnter
. This should be a nice quality-of-life improvement.screenshot-001973.mp4
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: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 leastimage_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:
358916490-8cf40a08-95b5-44fd-a16b-a1efb70b25f6.mp4
Now:
358916499-b5dde838-b700-4fa3-97be-543abff0f4ab.mp4
New
--dir
option for thecreate
commandThe
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
ansi-to-tui
to5.0.0-rc.1
to resolveratatui
version conflict by @sxyazi in https://github.com/sxyazi/yazi/pull/1499--dir
option tocreate
command by @abstrakct in https://github.com/sxyazi/yazi/pull/1505ext()
method toUrl
userdata by @sxyazi in https://github.com/sxyazi/yazi/pull/1528confirm
component by @thelamb in https://github.com/sxyazi/yazi/pull/1167MACOSX_DEPLOYMENT_TARGE
to 10.11 to make the binary compatible with old macOS by @hronro in https://github.com/sxyazi/yazi/pull/1532code
previewer handle invalid carriage return chars and binary streams better by @sxyazi in https://github.com/sxyazi/yazi/pull/1550\r
fixes only to content within the visible range, avoid unnecessary allocations during natural sorting by @sxyazi in https://github.com/sxyazi/yazi/pull/1551which
candidates that overlap with longer key chords by @sxyazi in https://github.com/sxyazi/yazi/pull/1562DECSET
andDECRQM
tmux passthrough by @sxyazi in https://github.com/sxyazi/yazi/pull/1564New Contributors
Full Changelog: sxyazi/yazi@v0.3.1...v0.3.2
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.