-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Migrating to Yazi v0.3.0 #1046
Comments
sxyazi
added
feature
New feature request
and removed
feature
New feature request
labels
May 16, 2024
This comment was marked as off-topic.
This comment was marked as off-topic.
mikavilpas
added a commit
to mikavilpas/dotfiles
that referenced
this issue
May 19, 2024
This comment was marked as off-topic.
This comment was marked as off-topic.
This was referenced May 28, 2024
Closed
Lua API changes in Yazi v0.3
|
mikavilpas
added a commit
to mikavilpas/dotfiles
that referenced
this issue
Jun 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that, Yazi v0.3 is still under development. The content of this issue will be updated as development progresses.
Eliminated the
exec
propertySince Yazi v0.2.4,
exec
has been deprecated and replaced with a newrun
property and some compatibility code has been written to ensure users can transition smoothly.In Yazi v0.3, these compatibility codes will be removed, meaning
exec
will be completely eliminated.Please replace all instances of
exec = ...
withrun = ...
in youryazi.toml
,keymap.toml
, andtheme.toml
files if any, for example:Eliminated the
jump
commandIn Yazi v0.2.5, the
jump
command has been deprecated, andzoxide
andfzf
have been re-implemented as built-in plugins to enhance their functionality and provide better flexibility (See #865 for details).In Yazi v0.3, the compatibility code of
jump
command will be deleted. Please replace them in yourkeymap.toml
if any:Removed the
mime
plugin from preloadersYazi v0.3 introduced a fetcher to simplify preloader design, and reclassified the
mime
plugin as part of the fetcher.If you copied the entire
preloaders
before, please remove it from the list:If you are using a custom
mime
plugin, such asDreamMaoMao/mime
, please update its code to the latest.Changed the behavior of the
sort
command's--reverse
and--dir-first
optionsIf you use a custom configuration and have overridden the
,
key series, please update them to the latest (See thesort
docs for details):yazi/yazi-config/preset/keymap.toml
Lines 109 to 120 in 46cd42f
The reason for this change
Before Yazi v0.3, the
sort
command was stateless. It didn’t consider the current sorting state of the directory. For example, if the directory was in reverse order, usingsort new-ordering
would lose that setting, and you’d have to usesort new-ordering --reverse
to keep it.If the directory had both
--reverse
and--dir-first
enabled, you’d have to usesort new-ordering --reverse --dir-first
, which was cumbersome. Yazi v0.3 introduced thesort --translit
option, exacerbating this issue.Therefore, in Yazi v0.3, the behavior was changed: the new
sort
command respects the previous directory sorting state. If--reverse
isn’t passed, it won’t change the state, and--reverse
/--dir-first
now also supports--reverse=no
to explicitly cancel it.Used
Ctrl-c
instead ofCtrl-q
as the universal close key for all componentsCtrl-c
is more in line with conventions, and it's closer toCtrl
, which makes it more convenient to press. See #763 (comment) and #779 (comment) for more details.This is a change in user behavior, so it's listed as a breaking change here. For users who copy the entire
keymap.toml
configuration file or use a custom key, they will not be affected.Used
<S-Enter>
instead of<C-Enter>
as the alternative key for interactiveopen
Previously,
<C-Enter>
was used as an alternative key for interactiveopen
, in Yazi v0.3, changing it to<S-Enter>
aligns with the behavior ofo
/O
-o
for direct file opening,O
(Shift-o) for interactive file opening.This change makes the behavior more intuitive and reduces additional cognitive burden. This is a change in user behavior, so it's listed as a breaking change here.
Renamed the shell wrapper to
yy
, in favor of the new Ya CLIThis is a change in user behavior, so it's listed as a breaking change here. See #914 for details.
For users who do not need the new CLI program, they will not be affected since shell function takes precedence over binary programs.
The text was updated successfully, but these errors were encountered: