My wezterm configuration. Allows workspace configurations with environment variables for each new workspace pane.
added docs to spawn maximized
1 file changed, +10 -0
+10-0utils.lua
| @@ -2,6 +2,16 @@ local wezterm = require("wezterm") | ||
| 2 | 2 | local mux = wezterm.mux |
| 3 | 3 | local M = {} |
| 4 | 4 | |
| 5 | +--- Spawns a new maximized window and executes the specified command. | |
| 6 | +-- | |
| 7 | +-- This function creates a new window in WezTerm, executes the given command, | |
| 8 | +-- and maximizes the window. | |
| 9 | +-- | |
| 10 | +-- Parameters: | |
| 11 | +-- args (table): A table containing the command and its arguments to be executed in the new window. | |
| 12 | +-- | |
| 13 | +-- Returns: | |
| 14 | +-- wezterm.action_callback: A callback function that, when executed, spawns a new maximized window with the specified command. | |
| 5 | 15 | function M.SpawnMaximizedCommandInNewWindow(args) |
| 6 | 16 | return wezterm.action_callback(function(win, pane) |
| 7 | 17 | local cwd_uri = pane:get_current_working_dir() |