-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
yazi: add testbed, adapt to 0.4.x changes #719
Conversation
87133b1
to
fd5e9e7
Compare
Thanks for adding a testbed. Could you update the
LGTM.
While this short-term solution simplifies the process of reusing upstream templates, it increases the inconsistencies in our code base. It might be best to wait for our saviour: |
Those seem quite orthogonal to each other? I think we can still greatly benefit from readability by using mnemonics right now. base16-nix also has support for base24 with I'll be more than happy to come up with a base24 scheme, but I'd still use mnemonics to keep things sane.
I guess in that case I can include fixes for #683 in this pr as well. |
LGTM. Keep the changes.
Yes. |
fd5e9e7
to
a03fb61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't want me to squash merge this PR, slightly change the commit structure as follows.
Squash the
28f6c00 yazi: remove 'x-' prefix from mimetypes
d276edb yazi: migrate select -> pick
7d14c78 yazi: permissions_{t,r,w,x,s} -> perm_{type,read,write,exec,sep}
a03fb61 yazi: replace mode_* with mode.*_{main,alt} settings
commits into
5c22a76 flake: bump nixpkgs
because the 0.4.x breaking changes are introduced by the nixpkgs
bump.
Then the final order could look like:
e79f210 yazi: add testbed
4f956ab yazi: reverse marker_selected -> marker_copied
79cf0c1 yazi: migrate highlight colors to mnemonics
<HASH> <SQUASHED_COMMIT>
I don't mind the order of the last two commits.
You might also want to add the
Closes: https://github.com/danth/stylix/issues/604
and
Closes: https://github.com/danth/stylix/issues/683
tags to the appropriate commits
Otherwise, the PR looks great.
If you don't care about the full PR squash, I could simply merge it as:
yazi: add testbed, resolve 0.4.0 breaking changes, and improve names
Add a testbed and resolve the 0.4.0 breaking changes [2] [3] [4].
Migrate the highlight colors to mnemonics with the following script to
improve readability and simplify the process of reusing upstream
templates [4]:
colors_base=(
"base08" "base09" "base0A" "base0B" "base0C" "base0D" "base0E"
"base0F"
)
colors_name=(
"red" "orange" "yellow" "green" "cyan" "blue" "magenta" "brown"
)
for i in "${!colors_base[@]}"; do
sed \
--in-place \
"s/${colors_base[i]}/${colors_name[i]}/g" \
modules/yazi/hm.nix
done
[1]: https://github.com/sxyazi/yazi/issues/1772
[2]: https://github.com/sxyazi/yazi/pull/1927
[3]: https://github.com/sxyazi/yazi/pull/1953
[4]: https://github.com/yazi-rs/flavors/blob/main/scripts/catppuccin/template.toml
Closes: https://github.com/danth/stylix/issues/604
Closes: https://github.com/danth/stylix/issues/683
Link: https://github.com/danth/stylix/pull/719
Reviewed-by: NAHO <[email protected]>
Squash-merge is fine by me. Separate commits are primarily for ease of review. I'll drop the nixpkgs bump and rebase, since 6eb0597 already bumps nixpkgs and it's good to merge as is.
Personally, I'm not a huge fan of doing this, since force pushes with such commit messages tend to cause repeated mentions in the referenced issues/prs. Having the That's also why the That's just my my two cents. |
This greatly improves readability and simplifies the process of reusing upstream templates [1] in stylix modules. Migration done with a simple bash script: ```bash colors_base=("base08" "base09" "base0A" "base0B" "base0C" "base0D" "base0E" "base0F") colors_name=("red" "orange" "yellow" "green" "cyan" "blue" "magenta" "brown") for i in "${!colors_base[@]}"; do sed -i "s/${colors_base[i]}/${colors_name[i]}/g" modules/yazi/hm.nix done ``` [1] https://github.com/yazi-rs/flavors/blob/main/scripts/catppuccin/template.toml
Breaking change for 0.4.0 release from [1]. [1]: https://www.github.com/sxyazi/yazi/pull/1927
Breaking change for 0.4.0 release, according to the migration guide [1]: > 1.2 - Renamed the select component to pick component [1]: https://www.github.com/sxyazi/yazi/issues/1772
One of the breaking changes for 0.4.0 migration from [1]. [1] https://www.github.com/sxyazi/yazi/pull/1953
Yet another breakage from [1] for 0.4.0 changes. This fixes the unreadable status bar issue. [1] https://www.github.com/sxyazi/yazi/pull/1953
a03fb61
to
d27a2b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't care about the full PR squash, I could simply merge it as:
Squash-merge is fine by me. Separate commits are primarily for ease of review.
Yes, they made reviewing a lot easier and faster. Thanks.
You might also want to add the tags to the appropriate commits
Personally, I'm not a huge fan of doing this, since force pushes with such commit messages tend to cause repeated mentions in the referenced issues/prs. Having the
Fixes https://github.com/danth/stylix/issues/604
in PR description is enough to resolve the issues when the pr gets merged.That's also why the
https://www.github.com/sxyazi/yazi/issues/1772
being prefixed withwww.
. That's one workaround to prevent irrelevant mentions and unnecessary mentions with backreferences (see the comment).That's just my my two cents.
I did not know there was a way to circumvent this pesky GitHub feature. Thanks for sharing!
…anth#719) Add a testbed and resolve the 0.4.0 breaking changes [2] [3] [4]. Migrate the highlight colors to mnemonics with the following script to improve readability and simplify the process of reusing upstream templates [4]: colors_base=( "base08" "base09" "base0A" "base0B" "base0C" "base0D" "base0E" "base0F" ) colors_name=( "red" "orange" "yellow" "green" "cyan" "blue" "magenta" "brown" ) for i in "${!colors_base[@]}"; do sed \ --in-place \ "s/${colors_base[i]}/${colors_name[i]}/g" \ modules/yazi/hm.nix done [1]: sxyazi/yazi#1772 [2]: sxyazi/yazi#1927 [3]: sxyazi/yazi#1953 [4]: https://github.com/yazi-rs/flavors/blob/main/scripts/catppuccin/template.toml Closes: danth#604 Closes: danth#683 Link: danth#719 Reviewed-by: NAHO <[email protected]>
Things done:
Bumpednixpkgs
flake input (as per suggestion yazi: add testbed, adapt to 0.4.x changes #719 (comment)).yazi
.marker_selected
andmarker_copied
to match upstream themes. See issue yazi switched yank and selected color #604 and upstream template.0.4.x
yazi breaking changes according to yazi-rs/flavors@4f127be, yazi-rs/flavors@fc8eeaa and migration guide.Fixes #604
Fixes #683