From c31a1e97997094f6a3ccf864f666de4a782c08f1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 31 Aug 2023 22:23:10 -0500 Subject: [PATCH] feat(wezterm): add pane rotation mappings --- dots/.config/wezterm/config/keybinds.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dots/.config/wezterm/config/keybinds.lua b/dots/.config/wezterm/config/keybinds.lua index d524c226..ecae229a 100644 --- a/dots/.config/wezterm/config/keybinds.lua +++ b/dots/.config/wezterm/config/keybinds.lua @@ -20,6 +20,15 @@ return { -- Cancel the mode by pressing escape { key = "Escape", action = "PopKeyTable" }, }, + + -- NOTE: Pane Rotate Position Submap + rotate_panes = { + { key = "h", action = wezterm.action.RotatePanes("CounterClockwise") }, + { key = "LeftArrow", action = wezterm.action.RotatePanes("CounterClockwise") }, + { key = "l", action = wezterm.action.RotatePanes("Clockwise") }, + { key = "RightArrow", action = wezterm.action.RotatePanes("Clockwise") }, + { key = "Escape", action = "PopKeyTable" }, + } }, keys = { { @@ -136,6 +145,15 @@ return { one_shot = false, }), }, + -- NOTE: Pane Rotate Submap Call + { + key = "z", + mods = "LEADER", + action = wezterm.action.ActivateKeyTable({ + name = "rotate_panes", + one_shot = false, + }), + } }, }