Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

plan.Plan.chain

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
plan
Declared in
Plan
Package
libtmux
Source
crates/libtmux/src/plan.rs
chain ( mut , operation : O ) → O::Creates
method [source]
method [source]
chain

Record an operation that is allowed to share a tmux invocation.

Identical to Plan::add except that the compiler rejects an operation whose output could not be told apart from its neighbours'. Use it to say that intent at the call site; a folding Planner reaches the same grouping on its own.

Examples

use libtmux::plan::{Plan, SendKeys};
use libtmux::PaneId;
let mut plan = Plan::new();
plan.chain(SendKeys::new("%1".parse::<PaneId>()?).text("make").enter());

0 declared, 0 inherited

Esc

Type to search.