Configuring custom terminal layouts with "wt"
The next action we'll look at is the wt
action. The wt
action can be used to launch preconfigured tab and pane layouts with the press of a button. For example, let's say we frequently use a certain pane layout when developing a project:
- A main pane with our editor, for example,
vim
. - A vertical pane with a live-reloading build process, for example,
dotnet watch run
.
It might look like this:
We could manually open panes and launch our editor and build process each time we start working, but that could get tiresome after a while. Windows Terminal supports building these layouts programmatically and associating them with keyboard shortcuts. We do this with the wt
action:
{ Â Â "command": { Â Â Â Â "action": "wt", Â Â ...