Workspace ManagerstableAPI Reference

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.

tmuxp.workspace.options.WorkspaceBuilderOptions

class tmuxp.workspace.options.WorkspaceBuilderOptions

Parsed workspace_builder_options catalog.

Description#

An absent workspace_builder_options catalog uses the defaults, whose PaneReadiness.AUTO policy waits for a pane's prompt only when the session shell is zsh: zsh workspaces build as before, while bash, sh, and other shells skip the wait. Set pane_readiness: always to restore the previous wait-everywhere behavior.

Members

pane_readiness : PaneReadiness = PaneReadiness.AUTO

pane-prompt wait policy; defaults to PaneReadiness.AUTO

Build options from a full workspace session_config dict.

Description#

Reads the optional workspace_builder_options catalog; an absent or empty catalog yields the defaults (see the class docstring for how the default PaneReadiness.AUTO policy affects non-zsh shells).

Examples#

>>> WorkspaceBuilderOptions.from_config({}).pane_readiness
<PaneReadiness.AUTO: 'auto'>
>>> cfg = {"workspace_builder_options": {"pane_readiness": "always"}}
>>> WorkspaceBuilderOptions.from_config(cfg).pane_readiness
<PaneReadiness.ALWAYS: 'always'>
Parameters
Returns

WorkspaceBuilderOptions

Esc

Type to search.

Reference preview Open reference