From 5775ca2267bd0041f0f05872f4c9ecfc63314d4f Mon Sep 17 00:00:00 2001 From: gered Date: Mon, 16 Sep 2024 11:47:58 -0400 Subject: [PATCH] add new wezterm keybinds for pane splitting/closing --- wezterm/wezterm.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index f3ee042..3574a18 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -61,6 +61,24 @@ config.font_size = 12 config.line_height = 1.0 config.freetype_load_target = "Light" +config.keys = { + { + key = "V", + mods = "CTRL|SHIFT|ALT", + action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }), + }, + { + key = "H", + mods = "CTRL|SHIFT|ALT", + action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }), + }, + { + key = "Q", + mods = "CTRL|SHIFT|ALT", + action = wezterm.action.CloseCurrentPane({ confirm = true }), + }, +} + -------------------------------------------------------------------------------- -- borrowed from: https://github.com/protiumx/.dotfiles/blob/main/stow/wezterm/.config/wezterm/wezterm.lua