# plan.ops.panes.SplitWindow.horizontal

- **Module:** plan.ops.panes.SplitWindow
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/plan/ops/panes.rs#L104
- **Page:** https://libtmux.org/en/rs/latest/reference/plan-ops-panes-splitwindow-horizontal/

```
plan.ops.panes.SplitWindow.horizontal(self) -> Self
```

Split side by side rather than one above the other.

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.
