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

Java workspace builder API

Edit this page on GitHub

libtmux-workspace 0.0.1-alpha.12-SNAPSHOT · Source

The io.github.libtmux.workspace package exposes the builder facade and configuration records. Applications can parse YAML or construct the records before building through a core Server.

Builder facadeLink to section

WorkspaceBuilder provides three static entry points:

Parsing and reading do not contact tmux. Build-time checks include the target server’s support for the requested layout.

Configuration recordsLink to section

Workspace holds the session name and ordered windows. WindowSpec holds the name, optional layout, and panes. PaneSpec holds the ordered shell commands.

These records copy their lists so later changes to an input list do not alter a description already constructed. They describe the supported Java subset; they are not Python plugin or tmuxp runtime extension interfaces.

Errors and lifetimeLink to section

Invalid configuration raises IllegalArgumentException. Build failures keep the original exception and attach cleanup failures as suppressed exceptions. The caller retains ownership of the supplied server and the successful session. Use the core session API for later inspection or removal.

Public builder contract

API declarations

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

Exports

io.github.libtmux.workspace.PaneSpec.PaneSpec
One pane and what to run in it.
io.github.libtmux.workspace.WindowSpec.WindowSpec
One window, its panes, and how they are arranged.
io.github.libtmux.workspace.Workspace.Workspace
A session described in a file, before anything has been built.
io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder
Builds a tmux session from a written description.
Esc

Type to search.