Unify pane splitting and new tab creation #11021
Labels
Area-CodeHealth
Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.
Help Wanted
We encourage anyone to jump in on these.
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Priority-3
A description (P3)
Product-Terminal
The new Windows Terminal.
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Milestone
In my eyes, spawning a new tab is a special case of splitting a nonexistent window into one pane.
Right now, we have a lot of divergence between opening a tab (1) and opening a pane (2); in both cases we spawn a new control, but the way it gets propagated into the tree is vastly different. The same applies for duplicating an active pane;
the code in pane splitting suggests that duplicating a pane keeps the working directory but a tab does not (!) (see 3)EDIT: No, we accounted for it. Double the code, double the places to look 😉1
terminal/src/cascadia/TerminalApp/TabManagement.cpp
Lines 242 to 272 in 10992b7
2
terminal/src/cascadia/TerminalApp/TerminalPage.cpp
Lines 1391 to 1416 in 10992b7
Collapsed note 3
3
terminal/src/cascadia/TerminalApp/TerminalPage.cpp
Lines 1359 to 1370 in 10992b7
The text was updated successfully, but these errors were encountered: