window.SplitDirection
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- window
- Package
- libtmux
- Source
- crates/libtmux/src/window.rs
-
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