Skip to content

wezterm cli get-pane-direction DIRECTION

Since: Version 20230408-112425-69ae8472

The functionality described in this section requires version 20230408-112425-69ae8472 of wezterm, or a more recent version.

Run wezterm cli get-pane-direction --help to see more help

Prints the pane id of the pane in the specified direction, relative to the current pane.

Possible values for DIRECTION are shown below; the direction is matched ignoring case so you can use left rather than Left:

  • Left, Right, Up, Down based on direction
  • Next, Prev based on the ordinal position in the pane tree.

Synopsis

Determine the adjacent pane in the specified direction.

Prints the pane id in that direction, or nothing if there is no pane in that
direction.

Usage: wezterm cli get-pane-direction [OPTIONS] <DIRECTION>

Arguments:
  <DIRECTION>
          The direction to consider

          [possible values: Up, Down, Left, Right, Next, Prev]

Options:
      --pane-id <PANE_ID>
          Specify the current pane. The default is to use the current pane based
          on the environment variable WEZTERM_PANE

  -h, --help
          Print help (see a summary with '-h')