Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

workspace.Window

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

struct workspace.Window
struct [source]
struct [source]
struct workspace.Window

Window is one window in a workspace.

Discussed in Go workspace builder API

Members

Name

Name : string
attribute [source]
attribute [source]
Name

Name is the window name. Empty lets tmux choose.

Index

Index : *int
attribute [source]
attribute [source]
Index

Index requests an explicit winlink index. Nil uses the next free index.

Layout

Layout : string
attribute [source]
attribute [source]
Layout

Layout is a tmux layout name applied after the panes exist.

StartDirectory

StartDirectory : string
attribute [source]
attribute [source]
StartDirectory

StartDirectory overrides the workspace directory for this window.

Shell

Shell : string
attribute [source]
attribute [source]
Shell

Shell replaces the command the window's first pane runs.

Focus

Focus : Bool
attribute [source]
attribute [source]
Focus

Focus selects this window once the workspace is built.

SuppressHistory

SuppressHistory : *Bool
attribute [source]
attribute [source]
SuppressHistory

SuppressHistory overrides the workspace setting for this window's panes.

Options

Options : map[string]string
attribute [source]
attribute [source]
Options

Options are applied after the window's initial pane exists and before additional panes are split.

OptionsAfter

OptionsAfter : map[string]string
attribute [source]
attribute [source]
OptionsAfter

OptionsAfter are window options applied once the panes exist, for settings that a later split would otherwise overwrite.

Environment

Environment : map[string]string
attribute [source]
attribute [source]
Environment

Environment is written to the session after this window's initial pane exists and before additional panes are split. Repeated names keep the last value written.

CommandsBefore

CommandsBefore : []Command
attribute [source]
attribute [source]
CommandsBefore

CommandsBefore run in each of this window's panes before the pane's own commands, after the workspace's.

Panes

Panes : []Pane
attribute [source]
attribute [source]
Panes

Panes are created in order. The first pane is the window's initial pane; each later one splits the window.

UnmarshalYAML

UnmarshalYAML ( node : *yaml.Node ) → error
method [source]
method [source]
UnmarshalYAML

UnmarshalYAML decodes the window, then its shell_command_before.

Esc

Type to search.