LibTmux.Workspace.WorkspaceFile
-
Describes the supported subset of one tmuxp workspace.
Guides
task materialPages that discuss WorkspaceFile.
- Guides
- Ports
In other ports
task equivalence 9 other ports mappedSource-verified mappings for Describe a workspace as data. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Describes the supported subset of one tmuxp workspace. | This page |
| Ruby | Lib | None recorded in the model |
| TypeScript | config A validated workspace with every schema default and transform applied. | None recorded in the model |
| Rust | config One workspace: a session and the windows it should contain. | None recorded in the model |
| Go | workspace Workspace is one tmuxp-style session description. | None recorded in the model |
| Java | io A session described in a file, before anything has been built. | None recorded in the model |
| C++ | libtmux:: | None recorded in the model |
| Swift | Workspace A tmux layout described as data, in tmuxp's vocabulary. | None recorded in the model |
| OCaml | Libtmux | None recorded in the model |
| Perl | Lib new(config => $hashref) validates and copies a libtmux.workspace/v1 configuration. No I/O occurs. Sessions contain named windows with nonempty pane arrays. Each pane requires literal command arguments or an explicit shell_command. Environment values inherit from workspace, session, and window, with pane values taking precedence. All configuration errors throw Config. | Validates and copies a libtmux.workspace/v1 JSON-compatible configuration. |
tmuxp uses configuration dictionaries rather than a dedicated workspace value type
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Workspace functionality is outside the Raku core library scope.
No equivalent is recorded in Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
Properties10
| Name | Type | Description |
|---|---|---|
| Environment | IRead | Gets the environment entries contributed by this declaration. |
| ShellCommandsBefore | IRead | Gets the commands prepended at this declaration level. |
| BeforeCommands | IRead | Gets the typed commands prepended at this declaration level. |
| SessionName | string? | Gets the session name. |
| StartDirectory | string? | Gets the directory its windows start in. |
| Options | IRead | Gets the session options to set. |
| GlobalOptions | IRead | Gets the global session options to set before creating the declared windows. |
| Windows | IRead | Gets the windows to create, in order. |
| BeforeScript | string? | Gets the host command retained without expansion or execution by parsing or resolution. |
| DocumentDirectory | string? | Gets the absolute document directory supplied to resolution, or null before resolution. |
Other members5 members
Common operations2
Other members3
- WorkspaceFile Initializes a workspace description.
- WithDefaults Returns a declaration with replacement environment and pre-command defaults.
- FromSnapshot Creates a workspace declaration from a captured session without reaching tmux.