From f143f3eb3e77af52c9a50802b32fc4a254bc9279 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 12 Jul 2026 01:03:58 -0700 Subject: wezterm: Add pane splitting commands --- wezterm/.config/wezterm/init.fnl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'wezterm') diff --git a/wezterm/.config/wezterm/init.fnl b/wezterm/.config/wezterm/init.fnl index 2ecd45a..62174b7 100644 --- a/wezterm/.config/wezterm/init.fnl +++ b/wezterm/.config/wezterm/init.fnl @@ -38,7 +38,15 @@ { :key "p" :mods "ALT" :action (wezterm.action.ScrollToPrompt -1) } { :key "n" :mods "ALT" :action (wezterm.action.ScrollToPrompt 1) } { :key "c" :mods "LEADER" :action (wezterm.action.SendKey { :key "c" :mods "CTRL" }) } - { :key "c" :mods "LEADER|CTRL" :action (wezterm.action.SendKey { :key "c" :mods "CTRL" }) }]) + { :key "c" :mods "LEADER|CTRL" :action (wezterm.action.SendKey { :key "c" :mods "CTRL" }) } + { :key "s" :mods "LEADER" :action (wezterm.action.ActivateKeyTable { :name "split_pane" :timeout_milliseconds 1000 }) } ]) + +(local key_tables + { :split_pane [ { :key "f" :action (wezterm.action.SplitPane { :direction "Right" :size { :Percent 50 } }) } + { :key "b" :action (wezterm.action.SplitPane { :direction "Left" :size { :Percent 50 } }) } + { :key "p" :action (wezterm.action.SplitPane { :direction "Up" :size { :Percent 50 } }) } + { :key "n" :action (wezterm.action.SplitPane { :direction "Down" :size { :Percent 50 } }) } + { :key "g" :mods "CTRL" :action "PopKeyTable" } ] }) (local inactive_pane_hsb { :saturation 0.8 @@ -55,6 +63,7 @@ : colors : keys + : key_tables : inactive_pane_hsb ;; :command_palette_font (wezterm.font "Fantasque Sans Mono") -- cgit v1.3-2-g0d8e