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

workspace.Pane

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.Pane
struct [source]
struct [source]
struct workspace.Pane

Pane is one pane in a window. YAML accepts either a bare command string or a mapping, so "echo hello" and {shell_command: echo hello} are equivalent.

Discussed in Go workspace builder API

Members

Commands

Commands : []Command
attribute [source]
attribute [source]
Commands

Commands run in the pane, in order.

CommandsBefore

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

CommandsBefore run before Commands, after the window's.

StartDirectory

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

StartDirectory overrides the window directory for this pane.

Shell

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

Shell replaces this pane's command. On the first pane it conflicts with Window.Shell because tmux creates that pane with the window.

Focus

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

Focus selects this pane once its window is built.

SuppressHistory

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

SuppressHistory overrides the window setting for this pane.

Environment

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

Environment is written to the session after all panes in the window exist and before this pane's commands are sent. Pane entries are processed in order, so repeated names keep the last value written.

Enter

Enter : *Bool
attribute [source]
attribute [source]
Enter

Enter applies to every command in this pane unless the command sets its own. Nil presses Enter, matching tmuxp.

SleepBefore

SleepBefore : time.Duration
attribute [source]
attribute [source]
SleepBefore

SleepBefore delays before each of this pane's commands. YAML writes it as a number of seconds, matching tmuxp, so 0.5 is half a second.

SleepAfter

SleepAfter : time.Duration
attribute [source]
attribute [source]
SleepAfter

SleepAfter delays after each of this pane's commands, in the same units.

UnmarshalYAML

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

UnmarshalYAML decodes a pane written as a bare command or as a mapping.

Esc

Type to search.