Set up multiple tabs, each with multiple panes from command line #8766

Closed
opened 2026-01-31 01:37:26 +00:00 by claunia · 3 comments
Owner

Originally created by @Dr-Irv on GitHub (Jun 2, 2020).

Description of the new feature/enhancement

I would like to be able to start up Windows Terminal with multiple tabs, with each tab having multiple panes. Right now, I can only start up with multiple tabs, or multiple panes, but can't start up with panes within each tab.

Proposed technical implementation details (optional)

Maybe something like this???

wt --multiple_tabs (split-pane -p "Command Prompt" -d "C:\D1" ; split-pane -p "Ubuntu" -d "C:\D1")  (split-pane -p "Command Prompt" -d "C:\D2" ; split-pane -p "Ubuntu" -d "C:\D2")
Originally created by @Dr-Irv on GitHub (Jun 2, 2020). # Description of the new feature/enhancement I would like to be able to start up Windows Terminal with multiple tabs, with each tab having multiple panes. Right now, I can only start up with multiple tabs, _or_ multiple panes, but can't start up with panes within each tab. # Proposed technical implementation details (optional) Maybe something like this??? ``` wt --multiple_tabs (split-pane -p "Command Prompt" -d "C:\D1" ; split-pane -p "Ubuntu" -d "C:\D1") (split-pane -p "Command Prompt" -d "C:\D2" ; split-pane -p "Ubuntu" -d "C:\D2") ```
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 01:37:26 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 3, 2020):

So, this is possible today!

The commandline arguments are more like a set of commands to play back in order.

A couple examples:

wt new-tab ; split-pane ; split-pane ; new-tab ; split-pane ; split-pane
#  ^ Tab 1, split two more times        ^ Tab 2, split 2 more times
wt new-tab ; new-tab ; split-pane ; split-pane
#  ^ Tab 1   ^ Tab 2, split 2 more times
#    No splits
wt split-pane ; split-pane ; new-tab ; split-pane ; split-pane
# ^ **IMPLICIT** Tab 1       ^ Tab 2, split twice
#   Split twice
@DHowett commented on GitHub (Jun 3, 2020): So, this is possible today! The commandline arguments are more like a set of commands to play back in order. A couple examples: ``` wt new-tab ; split-pane ; split-pane ; new-tab ; split-pane ; split-pane # ^ Tab 1, split two more times ^ Tab 2, split 2 more times ``` ``` wt new-tab ; new-tab ; split-pane ; split-pane # ^ Tab 1 ^ Tab 2, split 2 more times # No splits ``` ``` wt split-pane ; split-pane ; new-tab ; split-pane ; split-pane # ^ **IMPLICIT** Tab 1 ^ Tab 2, split twice # Split twice ```
Author
Owner

@ktownsend-personal commented on GitHub (Jun 10, 2020):

I reviewed the command line documentation for this, but I cannot figure out how to get 2 panes to the left and 3 panes to the right. Can that be done? Can the relative sizes be set? My use case is a standard 5-pane view to monitor 5 different things via SSH and I would like to avoid the manual setup each time I launch terminal. Especially when Windows 10 restarts automatically when I am away from the computer without any warning.

@ktownsend-personal commented on GitHub (Jun 10, 2020): I reviewed the command line documentation for this, but I cannot figure out how to get 2 panes to the left and 3 panes to the right. Can that be done? Can the relative sizes be set? My use case is a standard 5-pane view to monitor 5 different things via SSH and I would like to avoid the manual setup each time I launch terminal. Especially when Windows 10 restarts automatically when I am away from the computer without any warning.
Author
Owner

@zadjii-msft commented on GitHub (Jun 10, 2020):

That particular setup isn't quite possible yet. You could get one to the left, and three to the right, but you won't be able to get the focus back on the left pane to split it again.

It'll need work for #6298 and #5464 to be able to get exactly what you're looking for.

#4632 is tracking those and a bunch of other commandline args feature requests.

@zadjii-msft commented on GitHub (Jun 10, 2020): That _particular_ setup isn't quite possible yet. You could get one to the left, and three to the right, but you won't be able to get the focus back on the left pane to split it again. It'll need work for #6298 and #5464 to be able to get exactly what you're looking for. #4632 is tracking those and a bunch of other commandline args feature requests.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8766