Workspace ManagerconceptAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

LibTmux.Workspace.WorkspaceFile.FromSnapshot

Creates a workspace declaration from a captured session without reaching tmux.

Description

Preserves captured window placements and pane order, names, layouts, and focus. Repeated links become separate declared windows. Captured pane directories escape literal dollars for a later explicit Resolve(); captured null paths remain unspecified. Commands, environment, options, terminal text, entity identifiers, pane indices, and shared-link identity are not reconstructed. Foreground command names do not establish shell intent. Restoring a native custom layout can change which pane occupies a position; see SelectLayoutAsync().

Parameters
  • session (Session) – The session with captured windows, panes, and active pane relations.

Returns

An unresolved declaration without a document directory.

Errors
Esc
Search in

Type to search.

Reference previewOpen reference