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

LibTmux.Workspace.WorkspaceFile

API reference · Markdown

class LibTmux.Workspace.WorkspaceFile
class [source]
class [source]
class LibTmux.Workspace.WorkspaceFile

Describes the supported subset of one tmuxp workspace.

Parsing rejects keys that require tmuxp's Python hooks or plugins. It does not execute or silently discard configuration outside this model.

Discussed in .NET workspace builder API

In other ports Describe a workspace as data

Members

WorkspaceFile

WorkspaceFile ( sessionName : string? , startDirectory : string? , options : IReadOnlyDictionary<string, string>? , windows : IReadOnlyList<WorkspaceWindow>? )
method [source]
method [source]
WorkspaceFile

Initializes a workspace description.

Parameters

SessionName

SessionName : string?
property [source]
property [source]
SessionName

Gets the session name.

StartDirectory

StartDirectory : string?
property [source]
property [source]
StartDirectory

Gets the directory its windows start in.

Options

property [source]
property [source]
Options

Gets the session options to set.

Windows

property [source]
property [source]
Windows

Gets the windows to create, in order.

Parse

Parse ( yaml : string ) → WorkspaceFile
methodstatic [source]
methodstatic [source]
Parse

Reads a workspace from tmuxp YAML.

Parameters
  • yaml ( string ) – The file contents.

Returns

The parsed workspace.

Raises
  • WorkspaceFormatException – The input is too large, malformed, contains more than one document, or uses a key or value shape outside the supported subset.

Discussed in .NET workspace internals , Use the .NET workspace builder , .NET workspace builder behavior

Esc

Type to search.