[PR #11373] Misc pane refactoring #28542

Open
opened 2026-01-31 09:29:12 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/11373

State: closed
Merged: Yes


Some changes I had sitting around after working on #11153 that weren't
appropriate to put in that pr. Each commit should be independent if
particular ones are unwanted.

Slight overlap with #11305. There is some more code removal that can be
done after that is merged, specifically AttachPane can be deleted once
SplitPane handles adding multiple panes at once correctly.

Details

  • Makes WalkTree more useful, and closer to a real iterator. Add a
    convenient _FindPane built on top of that.
  • Coalesces PrecalculateAutoSplit and PreCalculateCanSplit since
    they are basically identical logic.
  • Pane::Relayout functionally did nothing because sizing was switched
    to star sizing at some point in the past, so it was just deleted.

Validation

Quick smoke test to make sure automatic splitting works, focus movement
still works correctly.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/11373 **State:** closed **Merged:** Yes --- Some changes I had sitting around after working on #11153 that weren't appropriate to put in that pr. Each commit should be independent if particular ones are unwanted. Slight overlap with #11305. There is some more code removal that can be done after that is merged, specifically `AttachPane` can be deleted once `SplitPane` handles adding multiple panes at once correctly. ## Details - Makes `WalkTree` more useful, and closer to a real iterator. Add a convenient `_FindPane` built on top of that. - Coalesces `PrecalculateAutoSplit` and `PreCalculateCanSplit` since they are basically identical logic. - `Pane::Relayout` functionally did nothing because sizing was switched to `star` sizing at some point in the past, so it was just deleted. ## Validation Quick smoke test to make sure automatic splitting works, focus movement still works correctly.
claunia added the pull-request label 2026-01-31 09:29:12 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28542