yazi icon indicating copy to clipboard operation
yazi copied to clipboard

feat: add a way to use zoxide as an input field

Open diniamo opened this issue 6 months ago • 1 comments

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 to jump zoxide_interactive
  • Default jump fzf keybind is changed

diniamo avatar Feb 10 '24 17:02 diniamo

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 ;)

sxyazi avatar Feb 14 '24 03:02 sxyazi

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

sxyazi avatar Apr 06 '24 17:04 sxyazi