update mod key

This commit is contained in:
♥ Minnie ♥ 2025-05-19 11:27:23 +08:00
parent 784e434072
commit 44feea9968
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -82,7 +82,7 @@ config.colors = {
config.disable_default_key_bindings = true config.disable_default_key_bindings = true
-- Setup leader key -- Setup leader key
config.leader = { key = "Space", mods = "CTRL", timeout_milliseconds = 1000 } config.leader = { key = "Space", mods = "ALT", timeout_milliseconds = 1000 }
-- General keymaps -- General keymaps
config.keys = { config.keys = {
@ -97,14 +97,14 @@ config.keys = {
}, },
{ -- Focus previous tab { -- Focus previous tab
key = "PageUp", key = "Home",
mods = "CTRL", mods = "ALT",
action = wezterm.action.ActivateTabRelative(-1), action = wezterm.action.ActivateTabRelative(-1),
}, },
{ -- Focus next tab { -- Focus next tab
key = "PageDown", key = "End",
mods = "CTRL", mods = "ALT",
action = wezterm.action.ActivateTabRelative(1), action = wezterm.action.ActivateTabRelative(1),
}, },
@ -164,8 +164,8 @@ config.keys = {
smart_splits.apply_to_config(config, { smart_splits.apply_to_config(config, {
direction_keys = { "LeftArrow", "DownArrow", "UpArrow", "RightArrow" }, direction_keys = { "LeftArrow", "DownArrow", "UpArrow", "RightArrow" },
modifiers = { modifiers = {
move = "CTRL", move = "ALT",
resize = "CTRL|ALT", resize = "ALT|CTRL",
}, },
}) })