When moving focus to tile with multiple windows, choose top of stack#474
Open
georgefst wants to merge 2 commits intodomferr:mainfrom
Open
When moving focus to tile with multiple windows, choose top of stack#474georgefst wants to merge 2 commits intodomferr:mainfrom
georgefst wants to merge 2 commits intodomferr:mainfrom
Conversation
domferr
reviewed
Jan 18, 2026
Author
I've realised I do care about this a bit, but in the general case I'm not even sure what behaviour should be. So I think we shouldn't worry about it for now, until someone sketches that out. Perhaps directionally moving focus like this is destined to only work for fairly simple situations anyway. For complex layouts, one quickly runs in to cases where it's not clear what the best option in the given direction would be. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes the keybindings for moving focus usable for people who habitually have multiple windows on one tile. Previously, the order in which they were selected was arbitrary, as far as I could tell. This was very annoying, because it could mean that switching right then left would often hide the original window in favour of one that was stacked behind it. Usually I'd just fall back to alt-tab, even though moving by direction should be much more intuitive.
I'm not a heavy user of stacking, though I might be more inclined if we could switch between stacked windows more easily (see #377 and #165, though on the latter I agree really that we wouldn't want any visual clutter). But I do often have multiple VSCode windows open in the same tile, and in this case, I can use gnome's keybinding for switching between windows of the same program instead.
This was shamelessly vibe-coded with OpenCode and Claude Opus 4.5. Hopefully that's okay. If nothing else, it serves as a feature request and some indication of how it could be implemented. And anyway, I'm using it right now and it does exactly what I want!
The behaviour for choosing between partially-overlapping windows could maybe still be improved, but I don't personally care about that.