update wezterm key binding

This commit is contained in:
xfy
2024-12-04 11:02:05 +08:00
parent e1113bd09c
commit 10a104b5a9

View File

@ -44,8 +44,29 @@ config.mouse_bindings = {
} }
-- keys -- keys
local act = wezterm.action
config.keys = { config.keys = {
{ key = "l", mods = "ALT", action = wezterm.action.ShowLauncher }, { key = "l", mods = "ALT", action = act.ShowLauncher },
{
key = "h",
mods = "CTRL|SHIFT",
action = act.ActivatePaneDirection("Left"),
},
{
key = "l",
mods = "CTRL|SHIFT",
action = act.ActivatePaneDirection("Right"),
},
{
key = "k",
mods = "CTRL|SHIFT",
action = act.ActivatePaneDirection("Up"),
},
{
key = "j",
mods = "CTRL|SHIFT",
action = act.ActivatePaneDirection("Down"),
},
} }
return config return config