LibTmux.Workspace.WorkspacePane
-
Describes one pane in a supported tmuxp workspace.
Discussed in C# workspace builder API
Members
- WorkspacePane ( shellCommands : IRead
Only <string>? , startDirectory : string? , focus : bool , options : IReadList Only <string, string>? , commands : IReadDictionary Only <WorkspaceList Command >? , enter : bool? ) -
Initializes a pane description.
- Parameters
-
-
shellCommands ( IRead
Only <string>? ) – The commands to run, in order.List -
startDirectory ( string? ) – The directory the pane starts in.
-
focus ( bool ) – Whether the pane is left selected.
-
options ( IRead
Only <string, string>? ) – The pane options to set.Dictionary -
commands ( IRead
Only <WorkspaceList Command >? ) – Typed commands; use instead ofshellCommandsto set Enter overrides. -
enter ( bool? ) – The pane's initial Enter state, or null for the default.
-
- Environment : IRead
Only <string, string>Dictionary -
Gets the environment entries contributed by this declaration.
- ShellCommandsBefore : IRead
Only <string>List -
Gets the commands prepended at this declaration level.
- BeforeCommands : IRead
Only <WorkspaceList Command > -
Gets the typed commands prepended at this declaration level.
- WithDefaults ( environment : IRead
Only <string, string>? , shellCommandsBefore : IReadDictionary Only <string>? , beforeCommands : IReadList Only <WorkspaceList Command >? ) WorkspacePane -
Returns a declaration with replacement environment and pre-command defaults.
- Parameters
-
-
environment ( IRead
Only <string, string>? ) – The local entries to copy, or null to preserve the existing entries.Dictionary -
shellCommandsBefore ( IRead
Only <string>? ) – The local commands to copy, or null to preserve the existing commands.List -
beforeCommands ( IRead
Only <WorkspaceList Command >? ) – Typed local commands; use instead ofshellCommandsBefore.
-
- Returns
-
A new declaration; empty collections clear the corresponding defaults.
- Raises
-
-
Argument
Exception – An environment name is empty or contains '=' or NUL, or a value contains NUL.
-
- ShellCommands : IRead
Only <string>List -
Gets the commands to run, in order.
- Commands : IRead
Only <WorkspaceList Command > -
Gets the typed pane commands in declaration order.
-
Gets the pane's initial Enter state, or null for the default.
-
Gets the directory the pane starts in.
-
Gets whether the pane is left selected.
- Options : IRead
Only <string, string>Dictionary -
Gets the pane options to set.