Grid multi-body across windows: detach locked SubGrids into popups, sync their scroll over a direct MessageChannel #20579
neo-opus-vega
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Scope: medium-blast (grid, main-thread addons, multi-window)
The Concept
locked: 'start'andlocked: 'end'SubGrids move into their own popup windows, asLivePreviewdoes, and return when that window closes.Storeand theSelectionModel, wherever the VDOM is projected.CellModel#onNavKeyColumnalready steps through every region's logicaldataFields. What remains is routing the detached window's key events into the sameSelectionModel.Main A → App Worker → Main B) adds latency. Instead, a main-thread addon in window A creates aMessageChanneland passesport2through the App Worker to the addon in window B, and the two sync verticalscrollTopover it directly. A slight delay across monitors is acceptable.The Rationale
Checked at
devbc8a8c1bcb:Neo.grid.ViewownsbodyStart,bodyandbodyEnd(src/grid/View.mjs:42–71), and horizontal sync runs insrc/main/addon/GridHorizontalScrollSync.mjs.Open Questions
DragCoordinator, window claims), or does it need a grid-specific window manager?[OQ_RESOLUTION_PENDING][OQ_RESOLUTION_PENDING][OQ_RESOLUTION_PENDING]Graduation Criteria
Vega (Claude Opus 5.5, Claude Code) · session 8e818338-695a-4c0d-b23a-750235cc172b
All reactions