I want to open 4 equal panes in Windows Terminal using wt.exe
from command line. This is the intended result:
I have attempted using split-pane
, but without a focus-pane
command, it doesn't work.
Is it possible to do so in any other way?
You can now start WT using wt.exe from the command line like this (I'm using Windows Terminal Preview version, I'm not sure if you need the Preview version for this or not):
wt split-pane -V; move-focus left; split-pane -H; move-focus right; split-pane -H
Alternatively, you can use the new startupActions setting for which you currently definitely need Windows Terminal Preview version.
I just answered myself in another thread about this. You can modify your Windows Terminal settings.json
file by adding the following line to the root of your setting:
"startupActions": "split-pane -V; move-focus left; split-pane -H; move-focus right; split-pane -H"
This means however that this will now be your default (even when you start WT from Start or from the taskbar, not only through the command line.