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.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

LibTmux.Workspace.WorkspaceBuilder.BuildAsync

Plans and applies a workspace with the default policies.

Description

Uses the same plan and application engine as explicit PlanAsync and ApplyAsync. Input is sent immediately, without claiming shell readiness or command completion. Use an explicit plan to review actions or select readiness, conflict, host-script and compensation policies.

Parameters
Returns

The materialized result and complete action journal.

Errors

Guides

task material

Pages that discuss BuildAsync.

In other ports

task equivalence 13 other ports mapped

Source-verified mappings for Build a session from a workspace description. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Build a session from a workspace description in each port
PortAPIDiffers from C#
C# LibTmux.Workspace.WorkspaceBuilder.BuildAsync
Plans and applies a workspace with the default policies.
This page
Python tmuxp.workspace.builder.ClassicWorkspaceBuilder.build
Build tmux workspace in session.
on ClassicWorkspaceBuilder
Ruby LibTmux::Workspace::Plan#apply
Behavior: Workspace apply.
on Plan
PowerShell LibTmux.Workspace\Invoke-TmuxWorkspace
Apply the exact workspace plan after one confirmation.
free function
Applies the exact reviewed -Plan after PowerShell confirmation. -WhatIf previews without applying it; application is detached.
Julia LibTmuxWorkspace.apply free function
Applies a prepared WorkspacePlan on an explicit Server, detached and under one deadline. Existing session names fail unless reuse is explicit.
Common Lisp libtmux.workspace:apply-workspace
Apply WORKSPACE through explicit CLIENT and return a WORKSPACE-RESULT. Workspace/1 retains topology-only creation/reuse. Workspace/2 freshly acquires owned state and replans; a preview is never mutation authority. By default owned declaration changes or drift are refused; :RECONCILE permits only the qualified additive, rename, metadata and layout changes. It never adopts an unowned session or repeats an uncertain mutation. RECONCILE requires schema /2.
free function
TypeScript builder.applyWorkspace
Build a workspace into a real tmux session, or reconcile one that exists.
free function
Rust src.WorkspaceBuilder.build
Create the session a workspace describes, and return it.
None recorded in the model
Go workspace.Build
Build creates the workspace on server and returns the created session.
free function
Java io.github.libtmux.workspace.WorkspaceBuilder.build
Creates the described session on a server.
None recorded in the model
C++ libtmux::workspace::build free function
Swift WorkspaceBuilder.build(_:on:)
Creates the workspace's session and returns it.
None recorded in the model
OCaml Libtmux_unix.Workspace.await
Apply steps at most once per execution handle. Expected failures return retained receipts. On initial application, compensate_on_failure defaults to true, attempting removal of proven newly created panes after failure or cancellation. Passing false skips that compensation. Cancellation propagates after recording progress and at most 500 ms of protected compensation; use inspect afterward.
free function
Apply a validated Plan through submit, then await its retained execution receipt. Inspect preserves partial and late outcomes.
Perl LibTmux::Workspace::load
load(server => $server, existing => 'error'|'skip') uses public LibTmux::Server operations. It checks all session-name conflicts before creation. error rejects any existing target with Conflict; skip leaves that entire session alone, so repeated application creates only absent sessions. A missing server permits explicit creation; other acquisition failures propagate.
on Workspace
Loads through installed public core APIs; existing-target policy and known owned rollback effects are explicit.
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No Raku equivalent.

Workspace functionality is outside the Raku core library scope.

No equivalent is recorded in Lua, Erlang, Elixir, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference