Closed boydaihungst closed 1 month ago
OK I found a solution for this. But it could be awesome if you could run ya.manager_emit("escape", { visual = true })
in plugin and wait for the result.
{ on = "r", run = ["escape --visual", "plugin --sync abc"], desc = "Test abc" },
You can also make the plugin async to achieve this, see https://github.com/sxyazi/yazi/issues/1553#issuecomment-2309119135
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 file a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty 0.36.4
yazi --debug
outputDid you try the latest nightly build to see if the problem got fixed?
Yes, and I updated the debug information above (
yazi --debug
) to the nightly that I triedDescribe the bug
When you're in
visual mode
and select some files (moving up/down, don't useselect
command), running a built-in command likeenter
orrename
will show that you have selected those files. However, if you userun=plugin --sync abc
, it will only show that 0 files are selected.Minimal reproducer
{ on = "r", run = "plugin --sync abc "', desc = "Test function" },
Anything else?
No response