Skip to content

Add multi-window arrangers (grid / cascade) over the layout planner#344

Merged
JE-Chen merged 1 commit into
devfrom
feat/window-arrange-batch
Jun 22, 2026
Merged

Add multi-window arrangers (grid / cascade) over the layout planner#344
JE-Chen merged 1 commit into
devfrom
feat/window-arrange-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 22, 2026

Copy link
Copy Markdown
Member

Lay out a whole set of windows in one call — snap_window moves one window and the v133 layout planner only computes rectangles; these close the loop.

  • arrange_grid (AC_arrange_grid): tile a list of window titles into an R×C grid (defaults to a near-square auto-shape for the window count), with an optional gap. Windows beyond the grid capacity are left untouched.
  • arrange_cascade (AC_arrange_cascade): stagger the titles diagonally, each offset px down-right of the previous, sized to 60% of the work area.
  • Build on the layout planner for geometry and reuse snap_window's injectable mover / screen_size seams, so the arrangement logic is fully headless-testable (the tests inject a recording mover); both return the count moved. Default mover is Win32 today, other platforms no-op until their backend lands.
  • Wired through all 5 layers (core in window_capture / facade / executor / MCP [SIDE_EFFECT_ONLY] / Script Builder under Window) + headless test + EN/Zh docs + WHATS_NEW. Qt-free.

@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 9bad843 into dev Jun 22, 2026
15 of 16 checks passed
@JE-Chen JE-Chen deleted the feat/window-arrange-batch branch June 22, 2026 21:01
@sonarqubecloud

Copy link
Copy Markdown

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