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:
parent
83f23c3fd1
commit
f7de9e3c05
1 changed files with 27 additions and 3 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue