SplitDirection
Where a split puts the pane it makes.
Source and package
- Qualified name
-
libtmux::window:: Split Direction - Module
- window
- Package
- libtmux
- Source
- crates/libtmux/src/window.rs
-
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?;