LibTmux.Workspace.WorkspaceWindow
-
Describes one window in a supported tmuxp workspace.
Discussed in C# workspace builder API
Members
- WorkspaceWindow ( windowName : string? , startDirectory : string? , layout : string? , focus : bool , options : IRead
Only <string, string>? , panes : IReadDictionary Only <WorkspaceList Pane >? , windowIndex : int? , optionsAfter : IReadOnly <string, string>? )Dictionary -
Initializes a window description.
- Parameters
-
-
windowName ( string? ) – The window name.
-
startDirectory ( string? ) – The directory its panes start in.
-
layout ( string? ) – The layout to apply after creating its panes.
-
focus ( bool ) – Whether the window is left selected.
-
options ( IRead
Only <string, string>? ) – The window options to set before pane commands and splits.Dictionary -
panes ( IRead
Only <WorkspaceList Pane >? ) – The panes to create, in order. -
windowIndex ( int? ) – The session-relative window index, or null for the next free index.
-
optionsAfter ( IRead
Only <string, string>? ) – The window options to set after pane commands and the final layout.Dictionary
-
- 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 >? ) WorkspaceWindow -
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.
-
-
Gets the window name.
-
Gets the requested session-relative window index, or null for the next free index.
-
Gets the directory its panes start in.
-
Gets the layout to apply after creating its panes.
-
Gets whether the window is left selected.
- Options : IRead
Only <string, string>Dictionary -
Gets the window options to set before pane commands and splits.
- OptionsAfter : IRead
Only <string, string>Dictionary -
Gets the window options to set after pane commands and the final layout.
- Panes : IRead
Only <WorkspaceList Pane > -
Gets the panes to create, in order.