Session.plan
The same mutations, described instead of run.
Source and package
- Qualified name
-
Session.plan - Module
- session
- Declared in
Session- Package
- libtmux
- Source
- packages/libtmux/src/session.ts
- plan(): Session
Plans -
Description#
session.plan.newWindow(…)takes whatsession.newWindow(…)takes and resolves to what it resolves to; it hands the work toServer.batch()so the planned mutations share one final snapshot.Examples#
const [editor, logs] = await server.batch([session.plan.newWindow({ index: 3, name: "editor" }),session.plan.newWindow({ index: 4, name: "logs" }),]);