Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

plan.ops.panes.SplitWindow.direction

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
plan.ops.panes
Declared in
SplitWindow
Package
libtmux
Source
crates/libtmux/src/plan/ops/panes.rs
direction ( mut , direction : SplitDirection ) → Self
method [source]
method [source]
direction

Put the new pane on this side of the one being divided.

The default is SplitDirection::Below , which is tmux's. Above and Left need tmux's -b, so they are reachable only through this: with SplitWindow::horizontal alone a plan could ask for two of the four positions, while the object API's crate::SplitOptions has always offered all four.

Examples

use libtmux::SplitDirection;
use libtmux::plan::{NewSession, Plan, SplitWindow};
let mut plan = Plan::new();
let session = plan.add(NewSession::new("above"));
plan.add(SplitWindow::new(session.window()).direction(SplitDirection::Above));
assert_eq!(plan.len(), 2);

0 declared, 0 inherited

Esc

Type to search.