diff options
| author | 2026-07-12 01:03:58 -0700 | |
|---|---|---|
| committer | 2026-08-26 23:04:25 -0700 | |
| commit | f143f3eb3e77af52c9a50802b32fc4a254bc9279 (patch) | |
| tree | cbdd7e427aeaa8981519438fded6cf5ba42104ca | |
| parent | a218a3cdc9b15fc8abcfa942f4ddcb08488bcfee (diff) | |
| download | new-dotfiles-f143f3eb3e77af52c9a50802b32fc4a254bc9279.tar.gz new-dotfiles-f143f3eb3e77af52c9a50802b32fc4a254bc9279.zip | |
wezterm: Add pane splitting commands
| -rw-r--r-- | wezterm/.config/wezterm/init.fnl | 11 |
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") |
