-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: improve fish integration #6320
Conversation
Could you explain this, perhaps? To me, it seems that we're doing the same thing: creating a function for the integration, but now we're storing it in |
63e050a
to
b9b98c0
Compare
Yes, that part doesn't change; the end result is that we create a function named The difference I was pointing to is the way yazi is called from within this function: I've changed it to I don't think the old behavior is particularly useful, since users can (and probably should) set their options directly in the settings. But I still wanted to point it out for the sake of completeness. |
Ah, I see. I missed that, somehow. Since this might be a breaking change, do you think it's better if we write something in the news file, like this perhaps: home-manager/modules/misc/news.nix Lines 1679 to 1690 in fc52a21
But just for fish integration users. |
f710af2
to
cc93434
Compare
Yes to be on the safe side I added a news entry. |
cc93434
to
0483361
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.
Thanks, this looks good to me.
Calls yazi as `command yazi`, allowing to use "yazi" as `shellWrapperName`. Also defines the wrapper with `programs.fish.functions` instead of `interactiveShellInit`.
0483361
to
4481a16
Compare
Thanks! Merged to master now 🙂 |
Description
Improve yazi fish integration:
Calls yazi as
command yazi
, allowing to use "yazi" asshellWrapperName
without infinite recursion. This could be backward-incompatible for users who have an alias named "yazi" and expect this shell wrapper to call that alias instead of the yazi executable directly.Also defines the wrapper with
programs.fish.functions
instead ofinteractiveShellInit
, which seems to be the preferred way.Checklist
Change is backwards compatible. (with one exception, see above)
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
ornix develop --ignore-environment .#all
using Flakes.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Maintainer CC
@XYenon @eljamm