yazi
yazi copied to clipboard
feat: add a way to use zoxide as an input field
I'd appreciate it if we discussed this, before you make any changes.
Missing:
- [ ] New default keybind for
jump fzf
- [ ] Fix the hang on line 55
- [ ] Replace
Err(anyhow!(""))
with the correct way to create an empty error
Breaking changes:
-
jump zoxide
now uses an input field, and the old functionality is moved tojump zoxide_interactive
- Default
jump fzf
keybind is changed
Thanks for your PR!
I plan to reimplement zoxide as a plugin to provide more flexibility, which will eventually deprecate the jump
command, conflicting a bit with the content of this PR. I just haven't had the time to do it yet, but it should be soon ;)
Hi, I've now reimplemented zoxide as a plugin in https://github.com/sxyazi/yazi/issues/865, which will allow users to copy it as a template and easily modify the commands inside.
That is, you can copy https://github.com/sxyazi/yazi/blob/main/yazi-plugin/preset/plugins/zoxide.lua as your ~/.config/yazi/plugins/zoxide.yazi/init.lua
, and then call ya.input()
to receive the user's input, and passes it to the zoxide
command - Yazi will load your own zoxide.yazi
plugin automatically