feat(wezterm): add pane rotation mappings
This commit is contained in:
parent
502dab0e96
commit
c31a1e9799
@ -20,6 +20,15 @@ return {
|
|||||||
-- Cancel the mode by pressing escape
|
-- Cancel the mode by pressing escape
|
||||||
{ key = "Escape", action = "PopKeyTable" },
|
{ 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 = {
|
keys = {
|
||||||
{
|
{
|
||||||
@ -136,6 +145,15 @@ return {
|
|||||||
one_shot = false,
|
one_shot = false,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
-- NOTE: Pane Rotate Submap Call
|
||||||
|
{
|
||||||
|
key = "z",
|
||||||
|
mods = "LEADER",
|
||||||
|
action = wezterm.action.ActivateKeyTable({
|
||||||
|
name = "rotate_panes",
|
||||||
|
one_shot = false,
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user