Repository navigation
tiling: Cycle Rows and Columns through balanced grids - #1857
Merged
rxhanson merged 1 commit intoSep 16, 2026
Merged
Conversation
Repeat Rows and Columns to cycle through balanced grid layouts, with independent maximum windows per row and column in General > Extras. Both limits default to three; one disables cycling for its action. Reuse the current display and window selection, Todo reservation, gap handling, and optional menu. Keep cycle state in memory and preserve explicitly saved limits.
Owner
|
Nice! The code looks good; I'll test this out soon. |
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.
Summary
Why This Change
Cycling lets users try different row or column arrangements with repeated presses of one shortcut. Each grid fills the available work area when application size restrictions allow it. Uneven window counts are balanced across occupied groups, and duplicate layouts are skipped.
For six windows with a maximum of three per column, successive layouts are:
Rows cycle through six rows of one window, three rows of two, then two rows of three. Application size restrictions take precedence over equal sizing; infeasible layouts can still leave gaps or overlaps.
Moving, resizing, opening, or closing windows does not trigger automatic reflow. The next invocation reapplies the active layout to the current windows and positions. Repeating it without further changes advances. If applying a layout leaves all window frames unchanged, the same invocation tries the next layout. Cycle state lives only in memory; after a restart, an intact recognizable grid can still advance.
Explicitly saved limits remain intact, and the default of 3 applies only when a limit is unset. The two limits are independent of the single-window Repeated commands setting. No settings migration is required.
Tests
37 focused XCTest cases passed, covering grid sequences and wraparound in both directions, uneven counts, window changes, pixel allocation, size restrictions, saved-limit round trips, window selection, and the optional Tiling menu. Window movement uses test doubles, and preference tests use isolated domains.