libtmux Reference MCP Search
On this page

session.Session.plan

View as Markdown

Module
session
Declared in
Session
Package
@libtmux/libtmux
Source
packages/libtmux/src/session.ts
plan ( ) SessionPlans
method [source]
method [source]
plan

The same mutations, described instead of run.

session.plan.newWindow(…) takes what session.newWindow(…) takes and resolves to what it resolves to; it hands the work to Server.batch so the planned mutations share one final snapshot.

Examples

const [editor, logs] = await server.batch([
  session.plan.newWindow({ name: "editor" }),
  session.plan.newWindow({ name: "logs" }),
]);

0 declared, 0 inherited

Esc

Type to search.