-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support systems with nushell as the default shell #130
Comments
Hi! Maybe the shell redirection isn't working correctly for you 🤔 Could you try setting You can find the location of the log file by issuing For me it prints out this: [2024-06-24 19:09:56] DEBUG Opening yazi with the command: (yazi '/Users/mikavilpas/git/yazi.nvim' --local-events "rename,delete,trash,move,cd" --chooser-file "/var/folders/23/y7gf7hz129l56_83w_g49jl80000gn/T/nvim.mikavilpas/oL4In8/0" > "/var/folders/23/y7gf7hz129l56_83w_g49jl80000gn/T/nvim.mikavilpas/oL4In8/1") Having done all this, do you get any errors if you run the yazi command in your shell? Any idea if anything could be wrong with that? |
I get this :
And it doesn't launch in my shell. I'm quite sure that this is because I use nushell (and the
works in my shell without issues |
Okay, sounds like good progress. How have you set your neovim to use nushell? What does nushell use for redirecting output to a file? |
Nushell is my default shell for my whole user, so nvim uses it. After some tries, here is the working command to reproduce the same comportment:
(It's juste I'm looking at ways to easily know which shell we are using, but I don't find anything very satisfying. Something like |
I don't know how well supported nushell is is neovim. I googled around for a bit and sadly found almost no results. There is
But this looks pretty confusing. In yazi's case both output streams (stdout and stderr) are needed separately, and this option seems to mix them into one in some cases. I don't feel comfortable using it as it doesn't give a guarantee of not breaking for some users. It might be a good idea to change your neovim to use a traditional shell by default, and enable nushell for specific use cases that you care about. I don't know how this can be done. |
I have an upcoming feature that might solve this. It gets rid of the problematic shell redirection logic entirely. If you're willing to install |
I tried it and it works perfectly ! |
Wow that's great 👍🏻👍🏻 I'm planning to merge that in this week, and will close this when that happens. |
* feat: support bulk renaming files in nightly yazi (opt-in) This change is optional, and by default is not enabled for users. To opt in, you need to do the following: - install the latest `yazi` from source - install the latest `ya` from source. `ya` is the standalone command line tool for yazi. You can read <sxyazi/yazi#914> for more information. - set the new config option `use_ya_for_events_reading = true` (it's `false` by default for now) - run `:checkhealth yazi` to verify that `ya` is found and that the healthcheck passes Bulk renaming in yazi is done by - selecting multiple files in yazi - pressing `r` to rename the files. This will open `$EDITOR`, typically Neovim, inside yazi. - The nested Neovim will display the selected file names, one per line. The user can then edit the names as needed. - save and quit the nested Neovim instance. This will rename the files in yazi. <https://yazi-rs.github.io/docs/configuration/keymap/#manager.rename> --- Technical details for developers: - in the future, once the next release of yazi is out, yazi.nvim may automatically use `ya` for reading events. This would then be the default behavior. `ya` may enable more advanced features in the future. - `yazi` is now built from source in continuous integration - the integration testing system, although perhaps innovative, is still taking shape. I believe in time it will stabilize, but I don't want to cement the design too much until the best structure becomes evident in time. Closes #135, closes #130 * chore: always open cypress in e2e mode by default * fixup! feat: support bulk renaming files in nightly yazi (opt-in) * fixup! feat: support bulk renaming files in nightly yazi (opt-in)
I reinstalled yazi using `cargo install --locked --git ... While it was in the process of doing that, I reinstalled the nvim plugin, and got a "please install yazi" error as expected. Once the install was done, I tried rerunning it and still got the same
...it worked! Hopefully the next person recreating my journey will scroll down to here and save themselves a touch of headache. |
Good stuff - glad you got it working. This will likely be the default behaviour once the next stable version of yazi comes out. Right now we have to do this so everyone is not forced to install from source. |
I'm using neovim v0.10.0 and Yazi v0.2.5 on arch. I copied the install script on the Readme for Lazy.
When I try to launch yazi (with - or cw), the floating window appears but shows this error :
The text was updated successfully, but these errors were encountered: