Workspace ManagerconceptAPI 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.

builder.planWorkspace

Plan session, window, and pane membership without changing tmux.

Description#

Reads the server once and answers from that capture, so it costs one snapshot and changes nothing. It reports structural creation, removal, retention, and window renames. It does not predict options, layouts, focus, or pane command effects.

Examples#

const plan = await planWorkspace(server, workspace);
if (plan.removesWindows.length > 0) console.log("would remove", plan.removesWindows);
Parameters
Raises
  • ZodError – when the workspace does not satisfy the strict config schema.

  • TypeError – when planning options are invalid.

Guides#

Pages that discuss planWorkspace.

Esc

Type to search.

Reference previewOpen reference