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

Edit this page on GitHub

tmux-workspace 0.1.0-alpha.12 · Source

The tmux_workspace crate exports its configuration types, builder, and freeze function. The core libtmux server and session remain the handles used for actual tmux operations.

ConfigurationLink to section

Workspace holds the session description. Workspace::from_yaml parses it, and to_yaml emits its YAML representation. WindowConfig and PaneConfig describe the nested objects; ConfigError identifies invalid configuration.

BuilderLink to section

WorkspaceBuilder borrows a Server. new selects that server, plan returns the inert construction plan, and build asynchronously creates the requested session. Keep the server alive for the builder’s lifetime.

BuildError distinguishes configuration errors, underlying libtmux errors, refused operations, a missing initial window, and an existing session name. Successful completion returns a Session; failure does not imply rollback.

ExportLink to section

freeze(&Session) asynchronously produces a Workspace describing the live session. Serialize that result with to_yaml. The exported structure is suitable for review and editing; it cannot restore process memory or recover an original shell command from a running program.

Public exports and builder; Freeze API.

API declarations

Follow a declaration for its signature, members, documentation, and source.

Exports

src.BuildError
A failure while building a workspace.
config.ConfigError
A workspace configuration failure.
freeze.freeze
Describe a live session as a workspace.
config.PaneConfig
One pane.
config.ShellCommand
One command typed into a pane, with tmuxp's per-command settings.
config.WindowConfig
One window and the panes it should contain.
config.Workspace
One workspace: a session and the windows it should contain.
src.WorkspaceBuilder
Creates tmux sessions from workspace configurations.
Esc

Type to search.