Files
LLeMbas-TTY/docs/config/lua/keyassignment/SpawnTab.md
T
Wez Furlong 809bb53387 docs: split out the KeyAssignment enum variants
This makes the individual functions a bit easier to discover,
and a lot easier to link to.
2020-10-10 08:45:13 -07:00

20 lines
584 B
Markdown

# SpawnTab
Create a new tab in the current window. The argument defines to which *domain* the tab belongs:
```lua
local wezterm = require 'wezterm';
return {
keys = {
-- Create a new tab in the default domain
{key="t", mods="SHIFT|ALT", action=wezterm.action{SpawnTab="DefaultDomain"}},
-- Create a new tab in the same domain as the current tab
{key="t", mods="SHIFT|ALT", action=wezterm.action{SpawnTab="CurrentPaneDomain"}},
-- Create a tab in a named domain
{key="t", mods="SHIFT|ALT", action=wezterm.action{SpawnTab={DomainName="unix"}}},
}
}
```