-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Items selected in visual mode aren't count in cx.active.selected
#1553
Comments
This is expected behavior. For safety reasons, the visual mode is designed as a temporary selection state because there are cases where selection failures can occur due to nested selection conflicts: yazi/yazi-core/src/tab/commands/escape.rs Line 101 in cd7209c
yazi/yazi-core/src/tab/commands/escape.rs Lines 114 to 119 in cd7209c
If your plugin needs to support visual mode, simply send an ya.manager_emit("escape", { visual = true }) Take a look at how the Closing as it's expected |
I'm going to lock this issue because it has been closed for 30 days. ⏳ |
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
wezterm
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
cx.active.selected
is empty when there are items selected in visual mode.Minimal reproducer
git clone https://github.com/TD-Sky/sudo.yazi.git ~/.config/yazi/plugins/sudo.yazi
cargo install nu
or use your favorite package managerya.dbg(#cx.active.selected)
in ~/.config/yazi/plugins/sudo.yazi/init.lua:47`#cx.active.selected
equals 0Anything else?
No response
The text was updated successfully, but these errors were encountered: