Expand description
tmux process interaction: data models and command wrappers.
Everything that shells out to tmux lives here, so the rest of the crate
deals in plain data and Results rather than raw Commands.
Structsยง
- Pane
- A pane as reported by tmux, with its cell geometry within its window.
- Win
- A window and the panes it contains.
Constantsยง
- PANE_
FMT ๐
Functionsยง
- capture ๐
- Run a tmux command, returning
Ok(stdout)on success orErr(stderr)on a non-zero exit (the outerio::Resultis for spawn failures). - fire ๐
- join_
pane - kill_
pane - kill_
window - new_
window - next_
layout - out ๐
- parse_
pane ๐ - query
- Current window dimensions and the geometry of each of its panes.
- query_
windows - Every window in the session, each with its panes, ordered by index.
- rename_
window - select_
layout - select_
pane - Focus a specific pane by id.
- select_
pane_ dir - Move focus to the neighbouring pane;
diris โ-Lโ/โ-Rโ/โ-Uโ/โ-Dโ. - select_
window - split
- Split
targetand return the new pane id.flagis โ-hโ/โ-vโ;beforeputs the new pane left/above instead of right/below. - swap_
pane - swap_
window