Module tmux

Source
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 or Err(stderr) on a non-zero exit (the outer io::Result is 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; dir is โ€œ-Lโ€/โ€œ-Rโ€/โ€œ-Uโ€/โ€œ-Dโ€.
select_window
split
Split target and return the new pane id. flag is โ€œ-hโ€/โ€œ-vโ€; before puts the new pane left/above instead of right/below.
swap_pane
swap_window