Workspace ManagerstableTopics

Choose documentation 3

stable

Current version

stable
English

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

Edit this page on GitHub

Python workspace topics

tmuxp 1.74.0 · Source

Use tmuxp load to turn a YAML or JSON configuration into a tmux session. The configuration controls its windows, panes, directories, and commands.

Configuration and commands

A workspace names a session and contains windows with panes. Pane shorthand can name a command directly, while mappings describe command lists, working directories, focus, and other configuration. The loader expands environment variables and resolves relative paths using the workspace location.

shell_command_before supplies setup commands inherited by the relevant panes. Commands, scripts, plugins, and custom builders execute code in your runtime. Use workspace files whose commands and extension imports you intend to run. Successful construction does not mean a launched application has completed startup; its own readiness check is a separate task.

Existing sessions

tmuxp load handles attachment and switching as part of its CLI workflow. It can attach to an existing named session, and its append mode adds windows to the current session. Those choices differ from replacing a session or converging a description automatically. Read the load command’s prompts and options before automating an existing-session workflow.

Export a session

tmuxp freeze writes the structure of a running session as YAML or JSON. It recovers current layouts and working directories, and uses observable current programs when forming commands. It cannot recover the original command line, process memory, or a complete application checkpoint. Review its output before relying on it as a launcher.

See the upstream workspace configuration for supported fields. Contributor details about the loader and custom builders belong in Internals.

Expansion implementation; Freeze implementation.

Esc

Type to search.

Reference preview Open reference