From a387950c9a6c782585416c98161dcca34c4248ca Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 21 Jun 2024 17:08:25 -0600 Subject: [PATCH] different new tab actions for wezterm --- modules/common/applications/wezterm.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/common/applications/wezterm.nix b/modules/common/applications/wezterm.nix index 7fee8ee..61dc01e 100644 --- a/modules/common/applications/wezterm.nix +++ b/modules/common/applications/wezterm.nix @@ -161,6 +161,20 @@ mods = 'SUPER', action = wezterm.action.ToggleFullScreen }, + -- super-t open new tab in new dir + { + key = 't', + mods = 'SUPER', + action = wezterm.action.SpawnCommandInNewTab { + cwd = wezterm.home_dir, + }, + }, + -- shift-super-t open new tab in same dir + { + key = 't', + mods = 'SUPER|SHIFT', + action = wezterm.action.SpawnTab 'CurrentPaneDomain' + }, -- project switcher { key = 'P',