aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-07-12 01:03:58 -0700
committerGravatar Tom Willemse2026-07-12 01:03:58 -0700
commit5925f47ae018621c23ae2f0603635212fa2a5afe (patch)
tree38d5c63bc22ded56bbf6eca6a3813fa95a3a0a05
parente9011b33d1420a59b8c4854ef9d14f2ff39cc3e8 (diff)
downloadnew-dotfiles-5925f47ae018621c23ae2f0603635212fa2a5afe.tar.gz
new-dotfiles-5925f47ae018621c23ae2f0603635212fa2a5afe.zip
wezterm: Add pane splitting commands
-rw-r--r--wezterm/.config/wezterm/init.fnl11
1 files changed, 10 insertions, 1 deletions
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")