Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-ts latest

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

Description#

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({ index: 3, name: "editor" }),
session.plan.newWindow({ index: 4, name: "logs" }),
]);
Esc

Type to search.

Reference previewOpen reference