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
- Python tmuxp uses configuration dictionaries rather than a dedicated workspace value type
- Ruby
LibTmux::Workspace - Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
config.Workspace - Rust
config.Workspace - Go
workspace.Workspace - Java
io.github.libtmux.workspace.Workspace.Workspace - C++
libtmux::workspace::Workspace - Swift
Workspace
Members
- WorkspaceFile ( sessionName : string? , startDirectory : string? , options : IReadOnlyDictionary<string, string>? , windows : IReadOnlyList<WorkspaceWindow>? )
-
Initializes a workspace description.
- Parameters
-
-
sessionName ( string? ) – The session name.
-
startDirectory ( string? ) – The directory its windows start in.
-
options ( IReadOnlyDictionary<string, string>? ) – The session options to set.
-
windows ( IReadOnlyList<WorkspaceWindow>? ) – The windows to create, in order.
-
-
Gets the session name.
-
Gets the directory its windows start in.
- Options : IReadOnlyDictionary<string, string>
-
Gets the session options to set.
- Windows : IReadOnlyList<WorkspaceWindow>
-
Gets the windows to create, in order.
- Parse ( yaml : string ) WorkspaceFile
-
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