Add `wait` flag to `quit` command, to close after the current operations have completed
thomasschafer opened this issue · comments
Please describe the problem you're trying to solve
I'm using Yazi inside of Helix in a Tmux popup, and I've set it up so that the popup sends keys back to the main window to open the selected file(s). I'd like to be able to quit Yazi (and by extension the Tmux popup) with something like this:
[[manager.prepend_keymap]]
on = ["<Enter>"]
run = ["open", "quit"]
desc = "Open the selected files"
This works fine, except that I need to hit y
in the Yazi menu that says "1 task running, are you sure you want to quit? (y/N)". When I type y
and press enter, the tmux popup closes as expected and I am returned to Yazi.
It would be great to have a flag (e.g. --wait
) added to the quit
command, that exits after the currently in-progress operations have completed.
Would you be willing to contribute this feature?
- Yes, I'll give it a shot
Describe the solution you'd like
A new --wait
flag so that Yazi quits after the current operations are complete.
Additional context
No response
Are you using the latest Yazi code? This should already be set as the default behavior in #997
See also #1059 (comment)
Apologies I indeed wasn't on the latest version, it works great now that I've built from source - thanks so much! 🙌