From f5fc01951b464668aa584386812408a30fccee9d Mon Sep 17 00:00:00 2001 From: sajenim Date: Sat, 8 Jul 2023 08:10:14 +0800 Subject: [PATCH] add pane resize --- home-manager/common/desktop/wezterm/wezterm.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home-manager/common/desktop/wezterm/wezterm.lua b/home-manager/common/desktop/wezterm/wezterm.lua index 3f5d9d5..696eccd 100644 --- a/home-manager/common/desktop/wezterm/wezterm.lua +++ b/home-manager/common/desktop/wezterm/wezterm.lua @@ -90,12 +90,18 @@ end config.keys = { -- Tabs { key = 't', mods = 'ALT', action = act.SpawnTab 'CurrentPaneDomain', }, - { key = 'w', mods = "ALT|CTRL", action = act.CloseCurrentTab { confirm = false }, }, + { key = 'w', mods = 'ALT|CTRL', action = act.CloseCurrentTab { confirm = false }, }, -- Panes { key = 'v', mods = 'ALT', action = act.SplitVertical { domain = 'CurrentPaneDomain' }, }, { key = 'h', mods = 'ALT', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }, }, - { key = 'x', mods = "ALT", action = act.CloseCurrentPane { confirm = false }, }, + -- Adjust Size + { key = 'LeftArrow', mods = 'ALT|CTRL', action = act.AdjustPaneSize { 'Left', 5 }}, + { key = 'RightArrow', mods = 'ALT|CTRL', action = act.AdjustPaneSize { 'Right', 5 }}, + { key = 'DownArrow', mods = 'ALT|CTRL', action = act.AdjustPaneSize { 'Down', 5 }}, + { key = 'UpArrow', mods = 'ALT|CTRL', action = act.AdjustPaneSize { 'Up', 5 }}, + -- Close + { key = 'x', mods = "ALT", action = act.CloseCurrentPane { confirm = false }, }, -- Navigation { key = 'LeftArrow', mods = 'ALT', action = act.ActivateTabRelative(-1) },