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

window.SplitDirection

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

View as Markdown

Module
window
Package
libtmux
Source
crates/libtmux/src/window.rs
enum window.SplitDirection
enumoverload [source]
enumoverload [source]
enum window.SplitDirection

Where a split puts the pane it makes.

Examples

use libtmux::SplitDirection;
let guard = libtmux::test::TestServer::new().await?;
let session = guard.server().new_session("work").await?;
let window = session.active_window().await?.expect("a session has a window");
// The direction names where the *new* pane lands, not which edge moves.
window.split(SplitDirection::Right).await?;
window.split(SplitDirection::Below).await?;
assert_eq!(window.panes().await?.len(), 3);
guard.shutdown().await?;

4 declared, 0 inherited

Members

  • Above constant Above the pane being divided.
  • Below constant Below it, which is tmux's default.
  • Left constant To its left.
  • Right constant To its right.
Esc

Type to search.