feat(wezterm): unify navigation with XMonad keybindings

Add sequential pane navigation and rotation to match XMonad's window
management pattern. This creates consistent muscle memory across both
the window manager and terminal multiplexer.

Changes:
- Add Alt+PageUp/PageDown for sequential pane focus (mirrors XMonad's window cycling)
- Add Alt+Ctrl+PageUp/PageDown for pane rotation (mirrors XMonad's rotAll)
- Change Leader+Tab to Leader+t for new tab (free up 't' was for zoom, now 'm')
- Change zoom from Leader+t to Leader+m (matches XMonad's maximize mnemonic)

Keybinding philosophy:
- Base keys (Alt+PageUp/Down) = navigation/viewing
- Ctrl modifier = structural control (resize/rotate)
- Consistent with XMonad: Mod+PageUp/Down (focus), Mod+Ctrl+PageUp/Down (rotate)
This commit is contained in:
♥ Minnie ♥ 2025-10-03 00:15:05 +08:00
parent 83f23c3fd1
commit f7de9e3c05
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -96,7 +96,7 @@ config.keys = {
--
{ -- Spawn new tab
key = "Tab",
key = "t",
mods = "LEADER",
action = wezterm.action.SpawnTab("CurrentPaneDomain"),
},
@ -161,8 +161,32 @@ config.keys = {
}),
},
{ -- Toggle pane zoom
key = "t",
{ -- Focus previous pane
key = "PageUp",
mods = "ALT",
action = wezterm.action.ActivatePaneDirection("Prev"),
},
{ -- Focus next pane
key = "PageDown",
mods = "ALT",
action = wezterm.action.ActivatePaneDirection("Next"),
},
{ -- Rotate panes counter-clockwise
key = "PageUp",
mods = "ALT|CTRL",
action = wezterm.action.RotatePanes("CounterClockwise"),
},
{ -- Rotate panes clockwise
key = "PageDown",
mods = "ALT|CTRL",
action = wezterm.action.RotatePanes("Clockwise"),
},
{ -- Maximize/zoom pane
key = "m",
mods = "LEADER",
action = wezterm.action.TogglePaneZoomState,
},