Launch Configurations
Launch Configurations enables you to save your configuration of windows, tabs, and panes, so that you can reopen the same set of sessions per project quickly.
What is it
With Launch configurations you can save in the app or by adding a yaml file.
Creating a Launch Configuration
From the UI
Set up the configuration of windows, tabs, and panes you would like to save.
Open the Command Palette, and type in
Save New Launch Configuration.Name the configuration file. The name field cannot be empty.
Click the Save configuration button.
With a YAML File
Launch Configurations files are generated when you create them with the UI and can also be created or modified manually.
Please see the below for Launch Configuration YAML file locations, format, and examples.
Using a Launch Configuration
From the Command Palette, enter
Launch Configurationto open and select Launch Configuration.Right-clicking the new Tab + button to open a menu and select saved Launch Configuration.
From the Mac Menu,
File > Launch Configurations, where you can search through and open your saved Launch Configuration.Single-window launch configs can be launched into the active window from the launch configuration palette using
CMD-ENTERon Mac.
From the Command Palette, enter
Launch Configurationto open and select Launch Configuration.Right-clicking the new Tab + button to open a menu and select saved Launch Configuration.
Single-window launch configs can be launched into the active window from the launch configuration palette using
CTRL-ENTERon Linux.
To open a WSL tab with a Launch Configuration, you must first set WSL as your default shell in Warp:
Go to
Settings > Features > Session > Startup shell for new sessions.Select your desired WSL distribution (e.g., Ubuntu) as the default shell.
After this, any Launch Configuration you open will use WSL as the shell.
From the Command Palette, enter
Launch Configurationto open and select Launch Configuration.Right-clicking the new Tab + button to open a menu and select saved Launch Configuration.
Single-window launch configs can be launched into the active window from the launch configuration palette using
CTRL-ENTERon Linux.
Terminal Tip You can open saved Launch Configurations via Alfred Workflow or Raycast Extension. Learn more here. Credit to @joetannenbaum
How it works
Launch Configuration YAML Format
All Launch Configuration yaml files are stored in the following location:
The cwd: value in the yaml code must contain an absolute path or "". Note that ~ or empty paths will result in the file not being visible on the list of options for Launch Configurations.
Windows
Sample configuration that shows how windows are structured in launch configuration files.
Tabs
Here's a sample configuration that shows how tabs are structured in launch configuration files.
Use the
titlefield to set a custom tab nameUse the
colorfield to set the tab colorWe currently support using the terminal colors (ANSI colors):
Red | Green | Yellow | Blue | Magenta | CyanThe actual color values will be automatically derived from your Warp theme
Panes
Launch Configurations support setting split panes in each tab. Note that Warp also supports nesting split panes in launch configuration files.
Active and Focus
Sample configuration that shows how a Window and Tab can be activated with a session in focus.
Use the
active_window_indexandactive_tab_indexfields to set your active Window and Tab.Use the
is_focusedfield to set which Pane is focused in each tab.
Not that when you use - active_tab_index: the tabs: field doesn't need the - prefix, as this can cause syntax issues.
Commands
Use the commands field to define a set of commands to run when a launch configuration in run.
You may need to use double quotes for commands with special characters. Commands in separate lines are chained together with && when run, as such commands run after ssh commands may not execute.
Last updated
Was this helpful?