Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

SplitWindow.horizontal

Split side by side rather than one above the other.

Source and package
Qualified name
libtmux::plan::ops::panes::SplitWindow::horizontal
Module
plan.ops.panes
Declared in
SplitWindow
Package
libtmux
Source
crates/libtmux/src/plan/ops/panes.rs
#[must_use] pub const fn horizontal(self) -> Self

Description#

Exactly SplitDirection::Right, and defined as it so the two cannot disagree. Kept because it is the spelling this operation shipped with.

It sets the side as well as the axis, so it is the whole position rather than half of one: direction(Above).horizontal() is Right, not Left. Either setter, in either order, leaves one of the four positions and never a mix of two.

Esc

Type to search.

Reference previewOpen reference