From 4bea6507c048724b33cbe4cf5d82885393d4b6f1 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 15 Nov 2025 09:26:23 +0100 Subject: [PATCH] wezterm: Add key to detach selected pane into new window `` activates the pane selector and lets you decide which pane to detach from the current _window_ and move to a new one. This mirrors the `` mapping moving a pane to a new tab, only 'bigger', thus using shift in addition. The binding is a little awkward, but with how rarely I have needed to use it this was fine for me so far. --- terminal/.config/wezterm/maps.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terminal/.config/wezterm/maps.lua b/terminal/.config/wezterm/maps.lua index 40cc692..c26a873 100644 --- a/terminal/.config/wezterm/maps.lua +++ b/terminal/.config/wezterm/maps.lua @@ -52,6 +52,11 @@ local keys = { mods = "LEADER|CTRL", action = act.PaneSelect({ mode = "MoveToNewTab" }), }, + { + key = "Q", + mods = "LEADER|CTRL", + action = act.PaneSelect({ mode = "MoveToNewWindow" }), + }, { key = "R", mods = "LEADER",