You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nikitabobko
changed the title
Add a possibility to "await" the moment when the next window appears
Add a possibility to "await" the moment when new window opens
May 15, 2024
Problem
Suppose the user wants to open a new window and move to the particular workspace.
The naive solution won't work because
open
exits faster than the window appears:Proposed solutions
Solution 1. "callback" style command to run next commands once focus changes
Solution 2. "suspend" style command to await until the next window appears. (Harder to implement but prettier)
Workaround
Use
sleep
. It's ugly and fragileThe text was updated successfully, but these errors were encountered: