Expand description
Tmux session and pane orchestration.
Checks tmux availability, creates sessions, splits panes, sends commands, applies layouts, and manages attach/reattach. Uses a builder pattern for testability and dry-run support.
Structs§
- Pane
Spec - Specification for a single pane: which branch/worktree to
cdinto and which CLI to run. - Tmux
Command - A single tmux CLI invocation, stored as its argument list.
- Tmux
Session - A fully-resolved tmux session ready to execute or inspect.
- Tmux
Session Builder - Builder that accumulates tmux operations for creating and configuring a session.
Functions§
- attach
- Attach the current terminal to the named tmux session.
- ensure_
tmux_ installed - Check that tmux is installed on PATH.
- is_
session_ alive - Check whether a tmux session with the given name is currently alive.
- kill_
session - Kill the named tmux session.
- resolve_
session_ name - Resolve a unique session name, handling collisions with existing sessions.