Closed sxyazi closed 3 months ago
If anyone is interested in implementing it, please reply to this issue
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Please describe the problem you're trying to solve
The Zoxide implementation in Yazi has had some long-standing issues, and this FR attempts to address them:
Resolves https://github.com/sxyazi/yazi/discussions/859 - @fastfading: The new Zoxide implementation will detect if the user is using Zoxide for the first time (i.e., just installed Zoxide). At this point, since the Zoxide database is empty, an error will occur. The plugin should check for this error and send an error notification to the user via
ya.notify()
.Resolves https://github.com/sxyazi/yazi/issues/310 - @LeXofLeviafan: Reasons are the same as above.
Resolves https://github.com/sxyazi/yazi/discussions/860 - @fdw: The new plugin will be able to add the directories the user browses to the zoxide database by providing the ability to further configure it in the user's
init.lua
, i.e. add thisrequire("zoxide"):setup { update_db = true }
to theinit.lua
file.Resolves https://github.com/sxyazi/yazi/discussions/757 - @hacker-DOM: By implementing Zoxide as a plugin, provide an example of integrating such external tools. When users need other tools besides Zoxide, they can easily copy the preset code and make some minor modifications to achieve their goals. Here, it is modifying
zoxide
tozsh-z
command.Resolves https://github.com/sxyazi/yazi/pull/654 - @diniamo: This FR will allow users to simply modify Lua to customize their workflow without needing to add code to Yazi codebase. This can help reduce my maintenance costs while avoiding Yazi bloat, as adding these specific workflows would require adding more configuration options to control different behaviors of the same functionality. This is also a barrier for new users getting started with Yazi configuration, as they would need to learn various configuration options and understand the subtle differences between each, which goes against Yazi's goal of providing a simple user experience.
Done by https://github.com/sxyazi/yazi/pull/881
Would you be willing to contribute this feature?
Describe the solution you'd like
See above
Additional context
No response