Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

625 B
Raw Blame

pane:move_to_new_tab()

{{since('20230326-111934-3666303c')}}

Creates a new tab in the window that contains pane, and moves pane into that tab.

Returns the newly created MuxTab object, and the MuxWindow object that contains it:

config.keys = {
  {
    key = '!',
    mods = 'LEADER | SHIFT',
    action = wezterm.action_callback(function(win, pane)
      local tab, window = pane:move_to_new_tab()
    end),
  },
}

See also pane:move_to_new_window(), wezterm cli move-pane-to-new-tab.