* Update ssh_backend.md * Update normalize_output_to_unicode_nfc.md * Update strikethrough_position.md * Update underline_position.md * Update underline_thickness.md * Fix lua config docs titles to be formatted as inline code * Mention how suggested alphabet for quick select is choosen * Mention update-status and update-right-status for status_update_interval * Fix docs for all keyassignments to be formatted as inline code * Fix Lua object index titles * Fix titles of `wezterm.*` module index pages * Fix title of `Color` object & `wezterm.color` functions We reduce titles from h2 to h1 because mkdocs defaults the page title to the page file name if no h1 header is found. * Unify title of all object methods * Add index page for Gui events
57 lines
1.6 KiB
Markdown
57 lines
1.6 KiB
Markdown
# `ActivatePaneDirection`
|
|
|
|
{{since('20201031-154415-9614e117')}}
|
|
|
|
`ActivatePaneDirection` activate an adjacent pane in the specified direction.
|
|
In cases where there are multiple adjacent panes in the intended direction,
|
|
wezterm will choose the pane that has the largest edge intersection.
|
|
|
|
If the active pane is [zoomed](TogglePaneZoomState.md), behavior is determined
|
|
by the [`unzoom_on_switch_pane`](../config/unzoom_on_switch_pane.md) flag.
|
|
|
|
```lua
|
|
local wezterm = require 'wezterm'
|
|
local act = wezterm.action
|
|
local config = {}
|
|
|
|
config.keys = {
|
|
{
|
|
key = 'LeftArrow',
|
|
mods = 'CTRL|SHIFT',
|
|
action = act.ActivatePaneDirection 'Left',
|
|
},
|
|
{
|
|
key = 'RightArrow',
|
|
mods = 'CTRL|SHIFT',
|
|
action = act.ActivatePaneDirection 'Right',
|
|
},
|
|
{
|
|
key = 'UpArrow',
|
|
mods = 'CTRL|SHIFT',
|
|
action = act.ActivatePaneDirection 'Up',
|
|
},
|
|
{
|
|
key = 'DownArrow',
|
|
mods = 'CTRL|SHIFT',
|
|
action = act.ActivatePaneDirection 'Down',
|
|
},
|
|
}
|
|
return config
|
|
```
|
|
|
|
{{since('20220101-133340-7edc5b5a')}}
|
|
|
|
You may now use `"Next"` and `"Prev"` as directions. These cycle
|
|
through the panes according to their position in the pane tree.
|
|
|
|
`"Next"` moves to the next highest pane index, wrapping around to 0
|
|
if the active pane is already the highest pane index.
|
|
|
|
`"Prev"` moves to the next lowest pane index, wrapping around to
|
|
the highest of the active pane is already the lowest pane index.
|
|
|
|
{{since('20220903-194523-3bb1ed61')}}
|
|
|
|
Ambiguous moves are now resolved by selecting the most recently activated pane
|
|
in a given direction, instead of based on the edge intersection.
|