-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can not parse option without dummy arg in plugin API #2429
Comments
Hey @bulletmark, I noticed that you did not correctly follow the issue template. Please ensure that:
Issues with |
Had to tick that last checklist item to get through GA even though I obviously need a plugin configured to test this bug. |
Please try #2431 |
It now works with or without that dummy arg but I wonder why you still require the |
Yes, It only takes two positional arguments: the plugin name and the plugin parameter, both of which are strings, see https://yazi-rs.github.io/docs/configuration/keymap/#manager.plugin. |
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty 0.39.1
yazi --debug
outputDescribe the bug
I recently created a plugin. It seems a bug that I had to add a dummy option as seen in that link. I.e. I expect I should be able to define the run command as
plugin cdhist -- --fuzzy=fzf
(or even justplugin cdhist --fuzzy=fzf
) but I have to add a dummy_
as inplugin cdhist -- _ --fuzzy=fzf
because without itjobs.args
does not see the option at all.I am absolutely a beginner to both yazi and lua so this may be my misunderstanding.
Minimal reproducer
N/A
Anything else?
No response
Checklist
yazi --debug
) input box to the nightly that I triedmv ~/.config/yazi ~/.config/yazi-backup
)The text was updated successfully, but these errors were encountered: