workspace.Workspace
-
Workspace is one tmuxp-style session description.
Discussed in Go 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 - Java
io.github.libtmux.workspace.Workspace.Workspace - .NET
LibTmux.Workspace.WorkspaceFile - C++
libtmux::workspace::Workspace - Swift
Workspace
Members
- InitialSessionRequest ( ) (tmux.NewSessionRequest, error)
-
InitialSessionRequest validates w and returns the request that creates its session and initial window. Use the resulting materialized session with
BuildIntoto continue the build over a caller-owned transport.Discussed in Use the Go workspace builder , Go workspace builder behavior , Go workspace builder API
-
SessionName names the created session. It is required.
-
StartDirectory is the default working directory for every window and pane that does not set its own.
-
Environment is written to the session after its initial pane exists and before later windows are created.
-
Options are applied after session creation. tmux resolves window-option names against the session's current window.
-
GlobalOptions are applied after the initial window exists and before later windows are created.
-
CommandsBefore run in every pane before that pane's own commands. Window and pane entries add to this list rather than replacing it.
-
SuppressHistory prefixes commands with a space unless a window or pane overrides it.
-
Windows are created in order. A workspace needs at least one.
-
UnmarshalYAML decodes the workspace, then its shell_command_before, which accepts one command or a list.
-
Validate reports all problems joined under
ErrInvalidWorkspace.
-
MissingDirectories returns absent start directories in document order. It is separate from
Workspace.Validatebecause a prior command may create them. tmux otherwise falls back to the user's home directory without an error. Names beginning with ~ are resolved as tmux resolves them.Discussed in Workspace files and directories , Go workspace builder behavior , Go workspace builder API