irongit

My wezterm configuration. Allows workspace configurations with environment variables for each new workspace pane.

added docs to spawn maximized

huncholanehuncholaneauthored
parent be8fdd6commit 042731c86a2b4637dbaf23c305877ef3c68951fbBrowse files

1 file changed, +10 -0

+10-0utils.lua
@@ -2,6 +2,16 @@ local wezterm = require("wezterm")
22 local mux = wezterm.mux
33 local M = {}
44
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.
515 function M.SpawnMaximizedCommandInNewWindow(args)
616 return wezterm.action_callback(function(win, pane)
717 local cwd_uri = pane:get_current_working_dir()