Skip to content

Tiled layout: ⌃⌥[ and ⌃⌥] add a window to a tab group - #23

Merged
jsanzdev merged 2 commits into
mainfrom
tiled-tab-join
Oct 19, 2026
Merged

jsanzdev merged 2 commits into
mainfrom
tiled-tab-join

Conversation

@jsanzdev

Copy link
Copy Markdown
Contributor

Summary

In the Tiled layout, ⌃⌥[ and ⌃⌥] now add a window to a tab group, as they do in the scrolling layout. Previously they did nothing while tiled.

  • Window alone in its tile, neighbour on that side: the window joins the neighbour's tile as a focused tab. If the neighbour is not tabbed yet, it becomes tabbed so the tiled layout keeps it as one tile instead of splitting it back into columns. The tile count drops by one, and the tiled ratios restart as they already do when the tile count changes.
  • Tab of a column with more than one window: it is expelled into a new plain tile on that side, focused (same as scrolling).
  • No neighbour on that side: nothing changes (returns false).

The neighbour is the geometric one that focus and move already use (TiledLayout.neighbour), so it matches what the user sees on screen. Drag-to-join (DropPlan .join) is untouched.

Zoom follows the window as it does for move: a zoomed window that joins or is expelled stays zoomed.

Changes

  • Strip.joinColumn(at:): moves the focused column's lone window into another column as its active tab and marks that column tabbed.
  • Workspace: tiled consumeOrExpelLeft/Right route through consumeOrExpelTile.
  • Tests: replaced testConsumeAndExpelDoNothingWhileTiled with testConsumeDoesNothingWithoutANeighbourOnThatSide; added tiled join-left, join-into-existing-tab-group, and expel-left/right tests to TabTests.

No new user-facing strings. No version, changelog, or String Catalog changes.

Testing

  • xcodebuild … test: 249 tests, 0 failures, TEST SUCCEEDED.
  • The test bundle is hosted by the Glide app, so the run used TEST_HOST= BUNDLE_LOADER= to run it standalone and avoid launching the app. No live UI test was run.

jsanzdev and others added 2 commits October 19, 2026 10:30
A window alone in its tile joins the tile on that side as a focused tab,
making that tile tabbed so it stays one tile. A tab of a multi-window
column is expelled into a new tile on that side, as in the scrolling
layout. With no neighbour on that side nothing changes.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jsanzdev
jsanzdev merged commit 3f6f861 into main Oct 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant