Originally created by @midrare on GitHub (Apr 24, 2024).
Is your feature request related to a problem? Please describe.
In AutoHotkey, focusing a window based on HWND doesn't work when the window is stacked or in another (not current) workspace.
Describe the solution you'd like komorebic focus-hwnd 3113648 switches to the relevant workspace and automatically cycles the stack so that the window is visible.
Describe alternatives you've considered
A workaround is to run komorebic state, parse it, and switch workspace and cycle the stack, then activate it. But AutoHotkey is not designed for this sort of work (can't parse JSON, can't capture stdout). You can switch to e.g. Python, but this adds startup lag.
Additional context
There seems to be no command for switching to a specific index in a stack e.g. komorebic focus-stack-index 3.
Originally created by @midrare on GitHub (Apr 24, 2024).
**Is your feature request related to a problem? Please describe.**
In AutoHotkey, focusing a window based on HWND doesn't work when the window is stacked or in another (not current) workspace.
**Describe the solution you'd like**
`komorebic focus-hwnd 3113648` switches to the relevant workspace and automatically cycles the stack so that the window is visible.
**Describe alternatives you've considered**
A workaround is to run `komorebic state`, parse it, and switch workspace and cycle the stack, then activate it. But AutoHotkey is not designed for this sort of work (can't parse JSON, can't capture stdout). You can switch to e.g. Python, but this adds startup lag.
**Additional context**
There seems to be no command for switching to a specific index in a stack e.g. `komorebic focus-stack-index 3`.
There is now komorebic eager-focus which will operate correctly on container stacks to bring the desired window to the front.
@LGUG2Z commented on GitHub (Jan 23, 2025):
There is now `komorebic eager-focus` which will operate correctly on container stacks to bring the desired window to the front.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @midrare on GitHub (Apr 24, 2024).
Is your feature request related to a problem? Please describe.
In AutoHotkey, focusing a window based on HWND doesn't work when the window is stacked or in another (not current) workspace.
Describe the solution you'd like
komorebic focus-hwnd 3113648switches to the relevant workspace and automatically cycles the stack so that the window is visible.Describe alternatives you've considered
A workaround is to run
komorebic state, parse it, and switch workspace and cycle the stack, then activate it. But AutoHotkey is not designed for this sort of work (can't parse JSON, can't capture stdout). You can switch to e.g. Python, but this adds startup lag.Additional context
There seems to be no command for switching to a specific index in a stack e.g.
komorebic focus-stack-index 3.@LGUG2Z commented on GitHub (Jan 23, 2025):
There is now
komorebic eager-focuswhich will operate correctly on container stacks to bring the desired window to the front.