Skip to content

Instantly share code, notes, and snippets.

@srackham
srackham / wezterm_tabs_loader.lua
Created May 15, 2026 21:36
A WezTerm utility to define and load tab/pane layouts from a configuration table.
-- =============================================================================
-- WezTerm Tab Loader Utility
-- =============================================================================
-- DESCRIPTION:
-- A helper script to define and load complex tab/pane layouts in WezTerm.
--
-- USAGE:
-- 1. Copy this code into your wezterm.lua (or a separate file and require it).
-- 2. Define your 'tabs' table (see example below).
-- 3. Bind a key to trigger the 'apply_tabs' function.