From 9811d801b82285069f5dcedbd1f3d49db32e3868 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 23 Jul 2023 19:29:12 +0200 Subject: [PATCH] wezterm: Add ability to close current pane Using x you can close the currently highlighted pane. Will not ask confirmation so be careful. --- terminal/.config/wezterm/maps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal/.config/wezterm/maps.lua b/terminal/.config/wezterm/maps.lua index ff220c1..4f749ed 100644 --- a/terminal/.config/wezterm/maps.lua +++ b/terminal/.config/wezterm/maps.lua @@ -3,7 +3,6 @@ local act = wezterm.action local keys = { { key = "O", mods = "CTRL", action = act.ShowDebugOverlay }, - { key = "[", mods = "CTRL", action = act.ScrollToPrompt(-1) }, { key = "]", mods = "CTRL", action = act.ScrollToPrompt(1) }, { -- vertical pane @@ -36,6 +35,7 @@ local keys = { mods = "CTRL", action = act.EmitEvent("ActivatePaneDirection-right"), }, + { key = "x", mods = "LEADER", action = act.CloseCurrentPane({ confirm = false }) }, { key = "z", mods = "LEADER", action = act.TogglePaneZoomState }, { key = " ", mods = "LEADER", action = act.RotatePanes("Clockwise") }, { key = "q", mods = "LEADER", action = act.PaneSelect({ mode = "Activate" }) },