diff options
| -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") |
