Repository navigation
Conversation
A tab let go on the right half of a split's row in the column or the strip joins it as one more pane, up to four, where it made a folder before (yetanotherbrowser#1054). The left half still makes a folder, and a tab let go on a lone tab still makes a pair. Three or four panes stand side by side, one above another, or as a 2x2 grid, picked from the split's menu (Arrange) or the command field, and every divider is dragged and double-clicked as the one between two halves is. A pane's cross or ⌘W takes it out and leaves the rest a split; one left is no split. The column shows the split as one row with a chip for each tab. Two side by side are laid, moved and kept exactly as before. Sessions keep the panes past the second beside the pair, so an older Yab reads a valid pair; sync carries the first two, and an update from sync keeps this Mac's other panes. Pinned pairs, Swap Halves and Duplicate stay two side by side. Part of yetanotherbrowser#71, yetanotherbrowser#14, yetanotherbrowser#522, yetanotherbrowser#1054.
naman0r
marked this pull request as ready for review
November 25, 2026 02:28
[Medium impact] The latest changes appear safe to merge, with no new actionable issue found. SummaryThis PR expands Split View to four tabs with side-by-side, stacked, and grid layouts. The latest changes address all five previous findings.
Review checks were limited to source inspection. macOS tests and visual checks were not run in this Linux environment. Reviews (2) · Last reviewed commit: "Three or four panes keep their widths, a..." · Reviewed by Greptile |
…n front A divider dragged toward an earlier one pushes it back, as it already pushed the later ones on. The window and the column now leave every pane of a split on screen its least width, not two halves' worth. Middle-click closes a split's third and fourth chips, and a space sliding in shows all of a split's chips. The find bar and notices stand over the pane in front of a stacked or grid split, and an agent's question at its bottom. Two side by side are unchanged.
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.
I'd like your yes on the behavior (the gesture, the limits and the arrangements below) before this goes further. Pictures are below.
What changes
Split View takes up to four tabs, laid side by side, stacked one above another, or as a 2x2 grid. Letting a tab go on the right half of a split's row in the column (or the strip) adds it as a pane. Today that drop makes a folder (#1054). Every divider drags and double-clicks like the one between two halves does now. Taking a pane out, or closing it, leaves the rest as a smaller split.
Part of #71, #14, #522, #1054
Design decisions
The gesture. I kept the drop Yab already has. Holding a tab over another tab's row shows New Folder on the left half and Split View on the right (
TabDropChoices). Today Split View is missing from that row when the target is already in a split, which is why #1054's drop makes a folder. Now:No new gesture to learn, and nothing anyone does today lands somewhere else.
Limits. Four panes at most, as in Arc. A pane is never narrower than the 320 pt a half keeps today. A stacked pane is never shorter than 180 pt: a band and some page. The window's height floor doesn't grow with stacking (see Not in this PR).
Layouts.
Taking panes out.
What stays two-only. Pinned pairs (the square holds two side by side), Swap Halves, Duplicate, and the layer-driven divider (
SplitRule) work as before on a two-tab side-by-side split and are refused or disabled for anything else. Three or more panes use SwiftUI's divider path: pages are held during the drag and resized once on release, as the fallback already does. Mail's split code doesn't use this split type and is unchanged.Two tabs behave exactly as today.
Pair.halves) runs the same code as before: same layout function, divider,SplitRulelayers, SplitDeck targets, swap, pinned pairs.Saved and synced data.
first,secondandshareas they are. The third and fourth pane, the layout and the extra divider positions are optional fields alongside (more,arrangement,cuts), so an older Yab reads a valid pair and the extra tabs come back as loose tabs after it. A test decodes the new file with an old reader's shape.Phone/andAndroid/).Arc. AGENTS.md says Arc is the spec. From the code's comments and the issues: Arc's Split View holds up to four tabs, side by side or stacked. I couldn't confirm the rest without Arc on this Mac:
Pictures
All are window captures of Yab Dev from this branch in a test world: 1700x940 window, 236 pt column, dark look. The pages are local test pages, so every tab's mark is the "1" from 127.0.0.1; real sites show their own icons.
The drop menu over a split's row. Before (
main): only New Folder. After: Split View on the right half.Dragging a tab onto a split's row (Tab C onto A and B):
Adding a fourth pane the same way:
The column's row: a pair on
main, then three and four panes on this branch. Under 72 pt a chip shows only its mark, since the title would be cut to "Ta…".Two side by side,
mainand this branch (same):Three and four side by side
Stacked: two, three and four
2x2
Dragging the grid's dividers: the one between the columns (it stops at the quarter a half keeps today), then the one between the rows:
⌘F in a lower pane (the grid, Tab D in front). Before (b463725, the first commit here): the search box opened over Tab B. After:
The GIFs are stop-motion: the drag is driven by posted mouse events, a window capture after each step, about 5 frames a second. They show where things land, not how smooth the motion is.
Proof
Tests/FastTests/SplitPanesTests.swift:Browser: dropping onto a split adds panes up to four, a pane's ✕ and ⌘W leave the rest, Arrange, the row keeping a split's tabs together, pinned pairs refusing threeTests/FastTests/SplitPanesEdgeTests.swift, one test per Greptile finding: a later divider pushing earlier ones, the column's widest leaving three panes their width, middle-click on a third chip, a parked split's extra chips, and the find bar's place over a lower pane. The first three fail on b463725 as written; the last two use new helpers, and fail when the old behavior is put back inside them.Tests
swift test --filter 'SplitPanesEdgeTests|SplitPanesTests|SplitPanesBrowserTests|SplitTests|SplitPinTests|SplitPinCloseTests|SplitPinCommandTests|SplitMenuTests|PinPairTests|SplitPreviewReleaseTests|FieldSplitTests|CollapsedPairProjectionTests|MailSplitTests|ColumnLayoutTests|ColumnHitTabTests|SessionFilePinTests|SyncShapesTests': 135 tests in 18 suites pass on 07cd17c.After the review fixes, each run on its own, these pass too: ColumnFolderBehavior, ColumnDragScroll, ColumnLift, EmptyFolderDrag, Command, MenuCommandCatalog, KeptEverywhere, SharedPins, SpaceLanding, NestedFolders, WindowUndo, StripShut, LinkFolders, PinColumns.
The suites around what this touches also pass, each run on its own: ColumnFolderBehavior, ColumnHitTab, ColumnDragScroll, ColumnLift, EmptyFolderDrag, Command, MenuCommandCatalog, ShortcutCatalog, QuickAction, KeptEverywhere, KeptBoundary, KeptPageMenu, SharedPins, SpaceLanding, NestedFolders, NoEmptyTab, NativeControl, NativeControlRegression, SyncAdopt, SyncFlush, SyncSpaceDelivery, SyncToday, SyncStaleReturn, SyncWire, TabPlacement, TabMoveEveryWindow, WindowUndo, WindowSessions, SessionID, CrashSessions, PinColumns, LinkFolders, AgentTabCleanup, StripShut, FieldFavorites.
Two pre-existing failures:
PinnedHomeTests.puttingAKeptTabDownLandsOnAnOrdinaryTabAsleepandAssistantTabSpaceTests.theGrantRoutesToItsSpaceEvenWithSharedCookiesfail the same way on a clean checkout ofmain, and neither involves a split. Several Store-backed suites interfere with each other when run in one process, so I ran those one at a time.SplitMenuTestschanged by one line: the split's menu now lists Arrange.Checked on
Checklist
swift testpasses (or the suites this touches: listed above)./design-check --headis cleanNot verified
Not in this PR
NativeControl) still reports onesplitPartnerId; it should list every pane.