feat(wezterm): add pane rotation mappings

This commit is contained in:
Price Hiller 2023-08-31 22:23:10 -05:00
parent 502dab0e96
commit c31a1e9799
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -20,6 +20,15 @@ return {
-- Cancel the mode by pressing escape
{ key = "Escape", action = "PopKeyTable" },
},
-- NOTE: Pane Rotate Position Submap
rotate_panes = {
{ key = "h", action = wezterm.action.RotatePanes("CounterClockwise") },
{ key = "LeftArrow", action = wezterm.action.RotatePanes("CounterClockwise") },
{ key = "l", action = wezterm.action.RotatePanes("Clockwise") },
{ key = "RightArrow", action = wezterm.action.RotatePanes("Clockwise") },
{ key = "Escape", action = "PopKeyTable" },
}
},
keys = {
{
@ -136,6 +145,15 @@ return {
one_shot = false,
}),
},
-- NOTE: Pane Rotate Submap Call
{
key = "z",
mods = "LEADER",
action = wezterm.action.ActivateKeyTable({
name = "rotate_panes",
one_shot = false,
}),
}
},
}