1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-28 09:12:19 +03:00
wezterm/docs/config/lua/keyassignment/SpawnTab.md
2020-10-10 10:49:36 -07:00

21 lines
624 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 same domain as the current pane.
-- This is usually what you want.
{key="t", mods="SHIFT|ALT", action=wezterm.action{SpawnTab="CurrentPaneDomain"}},
-- Create a new tab in the default domain
{key="t", mods="SHIFT|ALT", action=wezterm.action{SpawnTab="DefaultDomain"}},
-- Create a tab in a named domain
{key="t", mods="SHIFT|ALT", action=wezterm.action{SpawnTab={DomainName="unix"}}},
}
}
```