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.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
Enter
once, instead of typing"y"
and then pressingEnter
. This should be a nice quality-of-life improvement.screenshot-001973.mp4
Word wrapping
sxyazi/yazi#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.
sxyazi/yazi#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\
.sxyazi/yazi#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 fix: upgradeansi-to-tui
to5.0.0-rc.1
to resolveratatui
version conflict sxyazi/yazi#1499--dir
option tocreate
command by @abstrakct in feat: add--dir
option tocreate
command sxyazi/yazi#1505ext()
method toUrl
userdata by @sxyazi in feat: addext()
method toUrl
userdata sxyazi/yazi#1528confirm
component by @thelamb in feat: newconfirm
component sxyazi/yazi#1167MACOSX_DEPLOYMENT_TARGE
to 10.11 to make the binary compatible with old macOS by @hronro in chore: setMACOSX_DEPLOYMENT_TARGE
to 10.11 to make the binary compatible with old macOS sxyazi/yazi#1532code
previewer handle invalid carriage return chars and binary streams better by @sxyazi in feat: make the builtincode
previewer handle invalid carriage return chars and binary streams better sxyazi/yazi#1550\r
fixes only to content within the visible range, avoid unnecessary allocations during natural sorting by @sxyazi in perf: only scan the first 1024 bytes to detect if it's binary, apply\r
fixes only to content within the visible range, avoid unnecessary allocations during natural sorting sxyazi/yazi#1551which
candidates that overlap with longer key chords by @sxyazi in fix: filter out thewhich
candidates that overlap with longer key chords sxyazi/yazi#1562DECSET
andDECRQM
tmux passthrough by @sxyazi in fix:DECSET
andDECRQM
tmux passthrough sxyazi/yazi#1564New Contributors
--dir
option tocreate
command sxyazi/yazi#1505MACOSX_DEPLOYMENT_TARGE
to 10.11 to make the binary compatible with old macOS sxyazi/yazi#1532Full Changelog: sxyazi/yazi@v0.3.1...v0.3.2