mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Focus HWND #352
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.