// Code generated by go generate; DO NOT EDIT.
package tmux
import (
"context"
"time"
)
// ActivityAction is a typed value for the "activity-action" tmux option. Its zero value is invalid.
Stype ActivityAction string
const (
// ActivityActionNone selects "none".
k ActivityActionNone ActivityAction = "none"
// ActivityActionAny selects "any".
k ActivityActionAny ActivityAction = "any"
// ActivityActionCurrent selects "current".
k ActivityActionCurrent ActivityAction = "current"
// ActivityActionOther selects "other".
k ActivityActionOther ActivityAction = "other"
)
// String returns the exact tmux spelling of v.
mfunc (v ActivityAction) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v ActivityAction) Valid() bool {
switch v {
case ActivityActionNone, ActivityActionAny, ActivityActionCurrent, ActivityActionOther:
return true
default:
return false
}
}
// AllowPassthrough is a typed value for the "allow-passthrough" tmux option. Its zero value is invalid.
Stype AllowPassthrough string
const (
// AllowPassthroughOff selects "off".
k AllowPassthroughOff AllowPassthrough = "off"
// AllowPassthroughOn selects "on".
k AllowPassthroughOn AllowPassthrough = "on"
// AllowPassthroughAll selects "all".
k AllowPassthroughAll AllowPassthrough = "all"
)
// String returns the exact tmux spelling of v.
mfunc (v AllowPassthrough) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v AllowPassthrough) Valid() bool {
switch v {
case AllowPassthroughOff, AllowPassthroughOn, AllowPassthroughAll:
return true
default:
return false
}
}
// BellAction is a typed value for the "bell-action" tmux option. Its zero value is invalid.
Stype BellAction string
const (
// BellActionNone selects "none".
k BellActionNone BellAction = "none"
// BellActionAny selects "any".
k BellActionAny BellAction = "any"
// BellActionCurrent selects "current".
k BellActionCurrent BellAction = "current"
// BellActionOther selects "other".
k BellActionOther BellAction = "other"
)
// String returns the exact tmux spelling of v.
mfunc (v BellAction) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v BellAction) Valid() bool {
switch v {
case BellActionNone, BellActionAny, BellActionCurrent, BellActionOther:
return true
default:
return false
}
}
// ClockModeStyle is a typed value for the "clock-mode-style" tmux option. Its zero value is invalid.
Stype ClockModeStyle string
const (
// ClockModeStyle12 selects "12".
k ClockModeStyle12 ClockModeStyle = "12"
// ClockModeStyle24 selects "24".
k ClockModeStyle24 ClockModeStyle = "24"
// ClockModeStyle12WithSeconds selects "12-with-seconds".
k ClockModeStyle12WithSeconds ClockModeStyle = "12-with-seconds"
// ClockModeStyle24WithSeconds selects "24-with-seconds".
k ClockModeStyle24WithSeconds ClockModeStyle = "24-with-seconds"
)
// String returns the exact tmux spelling of v.
mfunc (v ClockModeStyle) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v ClockModeStyle) Valid() bool {
switch v {
case ClockModeStyle12, ClockModeStyle24, ClockModeStyle12WithSeconds, ClockModeStyle24WithSeconds:
return true
default:
return false
}
}
// CopyModeLineNumbers is a typed value for the "copy-mode-line-numbers" tmux option. Its zero value is invalid.
Stype CopyModeLineNumbers string
const (
// CopyModeLineNumbersOff selects "off".
k CopyModeLineNumbersOff CopyModeLineNumbers = "off"
// CopyModeLineNumbersDefault selects "default".
k CopyModeLineNumbersDefault CopyModeLineNumbers = "default"
// CopyModeLineNumbersAbsolute selects "absolute".
k CopyModeLineNumbersAbsolute CopyModeLineNumbers = "absolute"
// CopyModeLineNumbersRelative selects "relative".
k CopyModeLineNumbersRelative CopyModeLineNumbers = "relative"
// CopyModeLineNumbersHybrid selects "hybrid".
k CopyModeLineNumbersHybrid CopyModeLineNumbers = "hybrid"
)
// String returns the exact tmux spelling of v.
mfunc (v CopyModeLineNumbers) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v CopyModeLineNumbers) Valid() bool {
switch v {
case CopyModeLineNumbersOff, CopyModeLineNumbersDefault, CopyModeLineNumbersAbsolute, CopyModeLineNumbersRelative, CopyModeLineNumbersHybrid:
return true
default:
return false
}
}
// CursorStyle is a typed value for the "cursor-style" tmux option. Its zero value is invalid.
Stype CursorStyle string
const (
// CursorStyleDefault selects "default".
k CursorStyleDefault CursorStyle = "default"
// CursorStyleBlinkingBlock selects "blinking-block".
k CursorStyleBlinkingBlock CursorStyle = "blinking-block"
// CursorStyleBlock selects "block".
k CursorStyleBlock CursorStyle = "block"
// CursorStyleBlinkingUnderline selects "blinking-underline".
k CursorStyleBlinkingUnderline CursorStyle = "blinking-underline"
// CursorStyleUnderline selects "underline".
k CursorStyleUnderline CursorStyle = "underline"
// CursorStyleBlinkingBar selects "blinking-bar".
k CursorStyleBlinkingBar CursorStyle = "blinking-bar"
// CursorStyleBar selects "bar".
k CursorStyleBar CursorStyle = "bar"
)
// String returns the exact tmux spelling of v.
mfunc (v CursorStyle) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v CursorStyle) Valid() bool {
switch v {
case CursorStyleDefault, CursorStyleBlinkingBlock, CursorStyleBlock, CursorStyleBlinkingUnderline, CursorStyleUnderline, CursorStyleBlinkingBar, CursorStyleBar:
return true
default:
return false
}
}
// DestroyUnattached is a typed value for the "destroy-unattached" tmux option. Its zero value is invalid.
Stype DestroyUnattached string
const (
// DestroyUnattachedOff selects "off".
k DestroyUnattachedOff DestroyUnattached = "off"
// DestroyUnattachedOn selects "on".
k DestroyUnattachedOn DestroyUnattached = "on"
// DestroyUnattachedKeepLast selects "keep-last".
k DestroyUnattachedKeepLast DestroyUnattached = "keep-last"
// DestroyUnattachedKeepGroup selects "keep-group".
k DestroyUnattachedKeepGroup DestroyUnattached = "keep-group"
)
// String returns the exact tmux spelling of v.
mfunc (v DestroyUnattached) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v DestroyUnattached) Valid() bool {
switch v {
case DestroyUnattachedOff, DestroyUnattachedOn, DestroyUnattachedKeepLast, DestroyUnattachedKeepGroup:
return true
default:
return false
}
}
// DetachOnDestroy is a typed value for the "detach-on-destroy" tmux option. Its zero value is invalid.
Stype DetachOnDestroy string
const (
// DetachOnDestroyOff selects "off".
k DetachOnDestroyOff DetachOnDestroy = "off"
// DetachOnDestroyOn selects "on".
k DetachOnDestroyOn DetachOnDestroy = "on"
// DetachOnDestroyNoDetached selects "no-detached".
k DetachOnDestroyNoDetached DetachOnDestroy = "no-detached"
// DetachOnDestroyPrevious selects "previous".
k DetachOnDestroyPrevious DetachOnDestroy = "previous"
// DetachOnDestroyNext selects "next".
k DetachOnDestroyNext DetachOnDestroy = "next"
)
// String returns the exact tmux spelling of v.
mfunc (v DetachOnDestroy) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v DetachOnDestroy) Valid() bool {
switch v {
case DetachOnDestroyOff, DetachOnDestroyOn, DetachOnDestroyNoDetached, DetachOnDestroyPrevious, DetachOnDestroyNext:
return true
default:
return false
}
}
// ExtendedKeys is a typed value for the "extended-keys" tmux option. Its zero value is invalid.
Stype ExtendedKeys string
const (
// ExtendedKeysOff selects "off".
k ExtendedKeysOff ExtendedKeys = "off"
// ExtendedKeysOn selects "on".
k ExtendedKeysOn ExtendedKeys = "on"
// ExtendedKeysAlways selects "always".
k ExtendedKeysAlways ExtendedKeys = "always"
)
// String returns the exact tmux spelling of v.
mfunc (v ExtendedKeys) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v ExtendedKeys) Valid() bool {
switch v {
case ExtendedKeysOff, ExtendedKeysOn, ExtendedKeysAlways:
return true
default:
return false
}
}
// ExtendedKeysFormat is a typed value for the "extended-keys-format" tmux option. Its zero value is invalid.
Stype ExtendedKeysFormat string
const (
// ExtendedKeysFormatCSIU selects "csi-u".
k ExtendedKeysFormatCSIU ExtendedKeysFormat = "csi-u"
// ExtendedKeysFormatXTerm selects "xterm".
k ExtendedKeysFormatXTerm ExtendedKeysFormat = "xterm"
)
// String returns the exact tmux spelling of v.
mfunc (v ExtendedKeysFormat) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v ExtendedKeysFormat) Valid() bool {
switch v {
case ExtendedKeysFormatCSIU, ExtendedKeysFormatXTerm:
return true
default:
return false
}
}
// GetClipboard is a typed value for the "get-clipboard" tmux option. Its zero value is invalid.
Stype GetClipboard string
const (
// GetClipboardOff selects "off".
k GetClipboardOff GetClipboard = "off"
// GetClipboardBuffer selects "buffer".
k GetClipboardBuffer GetClipboard = "buffer"
// GetClipboardRequest selects "request".
k GetClipboardRequest GetClipboard = "request"
// GetClipboardBoth selects "both".
k GetClipboardBoth GetClipboard = "both"
)
// String returns the exact tmux spelling of v.
mfunc (v GetClipboard) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v GetClipboard) Valid() bool {
switch v {
case GetClipboardOff, GetClipboardBuffer, GetClipboardRequest, GetClipboardBoth:
return true
default:
return false
}
}
// MenuBorderLines is a typed value for the "menu-border-lines" tmux option. Its zero value is invalid.
Stype MenuBorderLines string
const (
// MenuBorderLinesSingle selects "single".
k MenuBorderLinesSingle MenuBorderLines = "single"
// MenuBorderLinesDouble selects "double".
k MenuBorderLinesDouble MenuBorderLines = "double"
// MenuBorderLinesHeavy selects "heavy".
k MenuBorderLinesHeavy MenuBorderLines = "heavy"
// MenuBorderLinesSimple selects "simple".
k MenuBorderLinesSimple MenuBorderLines = "simple"
// MenuBorderLinesRounded selects "rounded".
k MenuBorderLinesRounded MenuBorderLines = "rounded"
// MenuBorderLinesPadded selects "padded".
k MenuBorderLinesPadded MenuBorderLines = "padded"
// MenuBorderLinesNone selects "none".
k MenuBorderLinesNone MenuBorderLines = "none"
)
// String returns the exact tmux spelling of v.
mfunc (v MenuBorderLines) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v MenuBorderLines) Valid() bool {
switch v {
case MenuBorderLinesSingle, MenuBorderLinesDouble, MenuBorderLinesHeavy, MenuBorderLinesSimple, MenuBorderLinesRounded, MenuBorderLinesPadded, MenuBorderLinesNone:
return true
default:
return false
}
}
// MessageLine is a typed value for the "message-line" tmux option. Its zero value is invalid.
Stype MessageLine string
const (
// MessageLine0 selects "0".
k MessageLine0 MessageLine = "0"
// MessageLine1 selects "1".
k MessageLine1 MessageLine = "1"
// MessageLine2 selects "2".
k MessageLine2 MessageLine = "2"
// MessageLine3 selects "3".
k MessageLine3 MessageLine = "3"
// MessageLine4 selects "4".
k MessageLine4 MessageLine = "4"
)
// String returns the exact tmux spelling of v.
mfunc (v MessageLine) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v MessageLine) Valid() bool {
switch v {
case MessageLine0, MessageLine1, MessageLine2, MessageLine3, MessageLine4:
return true
default:
return false
}
}
// ModeKeys is a typed value for the "mode-keys" tmux option. Its zero value is invalid.
Stype ModeKeys string
const (
// ModeKeysEmacs selects "emacs".
k ModeKeysEmacs ModeKeys = "emacs"
// ModeKeysVi selects "vi".
k ModeKeysVi ModeKeys = "vi"
)
// String returns the exact tmux spelling of v.
mfunc (v ModeKeys) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v ModeKeys) Valid() bool {
switch v {
case ModeKeysEmacs, ModeKeysVi:
return true
default:
return false
}
}
// PaneBorderIndicators is a typed value for the "pane-border-indicators" tmux option. Its zero value is invalid.
Stype PaneBorderIndicators string
const (
// PaneBorderIndicatorsOff selects "off".
k PaneBorderIndicatorsOff PaneBorderIndicators = "off"
// PaneBorderIndicatorsColour selects "colour".
k PaneBorderIndicatorsColour PaneBorderIndicators = "colour"
// PaneBorderIndicatorsArrows selects "arrows".
k PaneBorderIndicatorsArrows PaneBorderIndicators = "arrows"
// PaneBorderIndicatorsBoth selects "both".
k PaneBorderIndicatorsBoth PaneBorderIndicators = "both"
)
// String returns the exact tmux spelling of v.
mfunc (v PaneBorderIndicators) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PaneBorderIndicators) Valid() bool {
switch v {
case PaneBorderIndicatorsOff, PaneBorderIndicatorsColour, PaneBorderIndicatorsArrows, PaneBorderIndicatorsBoth:
return true
default:
return false
}
}
// PaneBorderLines is a typed value for the "pane-border-lines" tmux option. Its zero value is invalid.
Stype PaneBorderLines string
const (
// PaneBorderLinesSingle selects "single".
k PaneBorderLinesSingle PaneBorderLines = "single"
// PaneBorderLinesDouble selects "double".
k PaneBorderLinesDouble PaneBorderLines = "double"
// PaneBorderLinesHeavy selects "heavy".
k PaneBorderLinesHeavy PaneBorderLines = "heavy"
// PaneBorderLinesSimple selects "simple".
k PaneBorderLinesSimple PaneBorderLines = "simple"
// PaneBorderLinesNumber selects "number".
k PaneBorderLinesNumber PaneBorderLines = "number"
// PaneBorderLinesSpaces selects "spaces".
k PaneBorderLinesSpaces PaneBorderLines = "spaces"
)
// String returns the exact tmux spelling of v.
mfunc (v PaneBorderLines) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PaneBorderLines) Valid() bool {
switch v {
case PaneBorderLinesSingle, PaneBorderLinesDouble, PaneBorderLinesHeavy, PaneBorderLinesSimple, PaneBorderLinesNumber, PaneBorderLinesSpaces:
return true
default:
return false
}
}
// PaneBorderStatus is a typed value for the "pane-border-status" tmux option. Its zero value is invalid.
Stype PaneBorderStatus string
const (
// PaneBorderStatusOff selects "off".
k PaneBorderStatusOff PaneBorderStatus = "off"
// PaneBorderStatusTop selects "top".
k PaneBorderStatusTop PaneBorderStatus = "top"
// PaneBorderStatusBottom selects "bottom".
k PaneBorderStatusBottom PaneBorderStatus = "bottom"
)
// String returns the exact tmux spelling of v.
mfunc (v PaneBorderStatus) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PaneBorderStatus) Valid() bool {
switch v {
case PaneBorderStatusOff, PaneBorderStatusTop, PaneBorderStatusBottom:
return true
default:
return false
}
}
// PaneScrollbars is a typed value for the "pane-scrollbars" tmux option. Its zero value is invalid.
Stype PaneScrollbars string
const (
// PaneScrollbarsOff selects "off".
k PaneScrollbarsOff PaneScrollbars = "off"
// PaneScrollbarsModal selects "modal".
k PaneScrollbarsModal PaneScrollbars = "modal"
// PaneScrollbarsOn selects "on".
k PaneScrollbarsOn PaneScrollbars = "on"
)
// String returns the exact tmux spelling of v.
mfunc (v PaneScrollbars) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PaneScrollbars) Valid() bool {
switch v {
case PaneScrollbarsOff, PaneScrollbarsModal, PaneScrollbarsOn:
return true
default:
return false
}
}
// PaneScrollbarsPosition is a typed value for the "pane-scrollbars-position" tmux option. Its zero value is invalid.
Stype PaneScrollbarsPosition string
const (
// PaneScrollbarsPositionRight selects "right".
k PaneScrollbarsPositionRight PaneScrollbarsPosition = "right"
// PaneScrollbarsPositionLeft selects "left".
k PaneScrollbarsPositionLeft PaneScrollbarsPosition = "left"
)
// String returns the exact tmux spelling of v.
mfunc (v PaneScrollbarsPosition) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PaneScrollbarsPosition) Valid() bool {
switch v {
case PaneScrollbarsPositionRight, PaneScrollbarsPositionLeft:
return true
default:
return false
}
}
// PopupBorderLines is a typed value for the "popup-border-lines" tmux option. Its zero value is invalid.
Stype PopupBorderLines string
const (
// PopupBorderLinesSingle selects "single".
k PopupBorderLinesSingle PopupBorderLines = "single"
// PopupBorderLinesDouble selects "double".
k PopupBorderLinesDouble PopupBorderLines = "double"
// PopupBorderLinesHeavy selects "heavy".
k PopupBorderLinesHeavy PopupBorderLines = "heavy"
// PopupBorderLinesSimple selects "simple".
k PopupBorderLinesSimple PopupBorderLines = "simple"
// PopupBorderLinesRounded selects "rounded".
k PopupBorderLinesRounded PopupBorderLines = "rounded"
// PopupBorderLinesPadded selects "padded".
k PopupBorderLinesPadded PopupBorderLines = "padded"
// PopupBorderLinesNone selects "none".
k PopupBorderLinesNone PopupBorderLines = "none"
)
// String returns the exact tmux spelling of v.
mfunc (v PopupBorderLines) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PopupBorderLines) Valid() bool {
switch v {
case PopupBorderLinesSingle, PopupBorderLinesDouble, PopupBorderLinesHeavy, PopupBorderLinesSimple, PopupBorderLinesRounded, PopupBorderLinesPadded, PopupBorderLinesNone:
return true
default:
return false
}
}
// PromptCommandCursorStyle is a typed value for the "prompt-command-cursor-style" tmux option. Its zero value is invalid.
Stype PromptCommandCursorStyle string
const (
// PromptCommandCursorStyleDefault selects "default".
k PromptCommandCursorStyleDefault PromptCommandCursorStyle = "default"
// PromptCommandCursorStyleBlinkingBlock selects "blinking-block".
k PromptCommandCursorStyleBlinkingBlock PromptCommandCursorStyle = "blinking-block"
// PromptCommandCursorStyleBlock selects "block".
k PromptCommandCursorStyleBlock PromptCommandCursorStyle = "block"
// PromptCommandCursorStyleBlinkingUnderline selects "blinking-underline".
k PromptCommandCursorStyleBlinkingUnderline PromptCommandCursorStyle = "blinking-underline"
// PromptCommandCursorStyleUnderline selects "underline".
k PromptCommandCursorStyleUnderline PromptCommandCursorStyle = "underline"
// PromptCommandCursorStyleBlinkingBar selects "blinking-bar".
k PromptCommandCursorStyleBlinkingBar PromptCommandCursorStyle = "blinking-bar"
// PromptCommandCursorStyleBar selects "bar".
k PromptCommandCursorStyleBar PromptCommandCursorStyle = "bar"
)
// String returns the exact tmux spelling of v.
mfunc (v PromptCommandCursorStyle) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PromptCommandCursorStyle) Valid() bool {
switch v {
case PromptCommandCursorStyleDefault, PromptCommandCursorStyleBlinkingBlock, PromptCommandCursorStyleBlock, PromptCommandCursorStyleBlinkingUnderline, PromptCommandCursorStyleUnderline, PromptCommandCursorStyleBlinkingBar, PromptCommandCursorStyleBar:
return true
default:
return false
}
}
// PromptCursorStyle is a typed value for the "prompt-cursor-style" tmux option. Its zero value is invalid.
Stype PromptCursorStyle string
const (
// PromptCursorStyleDefault selects "default".
k PromptCursorStyleDefault PromptCursorStyle = "default"
// PromptCursorStyleBlinkingBlock selects "blinking-block".
k PromptCursorStyleBlinkingBlock PromptCursorStyle = "blinking-block"
// PromptCursorStyleBlock selects "block".
k PromptCursorStyleBlock PromptCursorStyle = "block"
// PromptCursorStyleBlinkingUnderline selects "blinking-underline".
k PromptCursorStyleBlinkingUnderline PromptCursorStyle = "blinking-underline"
// PromptCursorStyleUnderline selects "underline".
k PromptCursorStyleUnderline PromptCursorStyle = "underline"
// PromptCursorStyleBlinkingBar selects "blinking-bar".
k PromptCursorStyleBlinkingBar PromptCursorStyle = "blinking-bar"
// PromptCursorStyleBar selects "bar".
k PromptCursorStyleBar PromptCursorStyle = "bar"
)
// String returns the exact tmux spelling of v.
mfunc (v PromptCursorStyle) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v PromptCursorStyle) Valid() bool {
switch v {
case PromptCursorStyleDefault, PromptCursorStyleBlinkingBlock, PromptCursorStyleBlock, PromptCursorStyleBlinkingUnderline, PromptCursorStyleUnderline, PromptCursorStyleBlinkingBar, PromptCursorStyleBar:
return true
default:
return false
}
}
// RemainOnExit is a typed value for the "remain-on-exit" tmux option. Its zero value is invalid.
Stype RemainOnExit string
const (
// RemainOnExitOff selects "off".
k RemainOnExitOff RemainOnExit = "off"
// RemainOnExitOn selects "on".
k RemainOnExitOn RemainOnExit = "on"
// RemainOnExitFailed selects "failed".
k RemainOnExitFailed RemainOnExit = "failed"
// RemainOnExitKey selects "key".
k RemainOnExitKey RemainOnExit = "key"
)
// String returns the exact tmux spelling of v.
mfunc (v RemainOnExit) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v RemainOnExit) Valid() bool {
switch v {
case RemainOnExitOff, RemainOnExitOn, RemainOnExitFailed, RemainOnExitKey:
return true
default:
return false
}
}
// SetClipboard is a typed value for the "set-clipboard" tmux option. Its zero value is invalid.
Stype SetClipboard string
const (
// SetClipboardOff selects "off".
k SetClipboardOff SetClipboard = "off"
// SetClipboardExternal selects "external".
k SetClipboardExternal SetClipboard = "external"
// SetClipboardOn selects "on".
k SetClipboardOn SetClipboard = "on"
)
// String returns the exact tmux spelling of v.
mfunc (v SetClipboard) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v SetClipboard) Valid() bool {
switch v {
case SetClipboardOff, SetClipboardExternal, SetClipboardOn:
return true
default:
return false
}
}
// SilenceAction is a typed value for the "silence-action" tmux option. Its zero value is invalid.
Stype SilenceAction string
const (
// SilenceActionNone selects "none".
k SilenceActionNone SilenceAction = "none"
// SilenceActionAny selects "any".
k SilenceActionAny SilenceAction = "any"
// SilenceActionCurrent selects "current".
k SilenceActionCurrent SilenceAction = "current"
// SilenceActionOther selects "other".
k SilenceActionOther SilenceAction = "other"
)
// String returns the exact tmux spelling of v.
mfunc (v SilenceAction) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v SilenceAction) Valid() bool {
switch v {
case SilenceActionNone, SilenceActionAny, SilenceActionCurrent, SilenceActionOther:
return true
default:
return false
}
}
// Status is a typed value for the "status" tmux option. Its zero value is invalid.
Stype Status string
const (
// StatusOff selects "off".
k StatusOff Status = "off"
// StatusOn selects "on".
k StatusOn Status = "on"
// Status2 selects "2".
k Status2 Status = "2"
// Status3 selects "3".
k Status3 Status = "3"
// Status4 selects "4".
k Status4 Status = "4"
// Status5 selects "5".
k Status5 Status = "5"
)
// String returns the exact tmux spelling of v.
mfunc (v Status) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v Status) Valid() bool {
switch v {
case StatusOff, StatusOn, Status2, Status3, Status4, Status5:
return true
default:
return false
}
}
// StatusJustify is a typed value for the "status-justify" tmux option. Its zero value is invalid.
Stype StatusJustify string
const (
// StatusJustifyLeft selects "left".
k StatusJustifyLeft StatusJustify = "left"
// StatusJustifyCentre selects "centre".
k StatusJustifyCentre StatusJustify = "centre"
// StatusJustifyRight selects "right".
k StatusJustifyRight StatusJustify = "right"
// StatusJustifyAbsoluteCentre selects "absolute-centre".
k StatusJustifyAbsoluteCentre StatusJustify = "absolute-centre"
)
// String returns the exact tmux spelling of v.
mfunc (v StatusJustify) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v StatusJustify) Valid() bool {
switch v {
case StatusJustifyLeft, StatusJustifyCentre, StatusJustifyRight, StatusJustifyAbsoluteCentre:
return true
default:
return false
}
}
// StatusKeys is a typed value for the "status-keys" tmux option. Its zero value is invalid.
Stype StatusKeys string
const (
// StatusKeysEmacs selects "emacs".
k StatusKeysEmacs StatusKeys = "emacs"
// StatusKeysVi selects "vi".
k StatusKeysVi StatusKeys = "vi"
)
// String returns the exact tmux spelling of v.
mfunc (v StatusKeys) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v StatusKeys) Valid() bool {
switch v {
case StatusKeysEmacs, StatusKeysVi:
return true
default:
return false
}
}
// StatusPosition is a typed value for the "status-position" tmux option. Its zero value is invalid.
Stype StatusPosition string
const (
// StatusPositionTop selects "top".
k StatusPositionTop StatusPosition = "top"
// StatusPositionBottom selects "bottom".
k StatusPositionBottom StatusPosition = "bottom"
)
// String returns the exact tmux spelling of v.
mfunc (v StatusPosition) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v StatusPosition) Valid() bool {
switch v {
case StatusPositionTop, StatusPositionBottom:
return true
default:
return false
}
}
// VisualActivity is a typed value for the "visual-activity" tmux option. Its zero value is invalid.
Stype VisualActivity string
const (
// VisualActivityOff selects "off".
k VisualActivityOff VisualActivity = "off"
// VisualActivityOn selects "on".
k VisualActivityOn VisualActivity = "on"
// VisualActivityBoth selects "both".
k VisualActivityBoth VisualActivity = "both"
)
// String returns the exact tmux spelling of v.
mfunc (v VisualActivity) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v VisualActivity) Valid() bool {
switch v {
case VisualActivityOff, VisualActivityOn, VisualActivityBoth:
return true
default:
return false
}
}
// VisualBell is a typed value for the "visual-bell" tmux option. Its zero value is invalid.
Stype VisualBell string
const (
// VisualBellOff selects "off".
k VisualBellOff VisualBell = "off"
// VisualBellOn selects "on".
k VisualBellOn VisualBell = "on"
// VisualBellBoth selects "both".
k VisualBellBoth VisualBell = "both"
)
// String returns the exact tmux spelling of v.
mfunc (v VisualBell) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v VisualBell) Valid() bool {
switch v {
case VisualBellOff, VisualBellOn, VisualBellBoth:
return true
default:
return false
}
}
// VisualSilence is a typed value for the "visual-silence" tmux option. Its zero value is invalid.
Stype VisualSilence string
const (
// VisualSilenceOff selects "off".
k VisualSilenceOff VisualSilence = "off"
// VisualSilenceOn selects "on".
k VisualSilenceOn VisualSilence = "on"
// VisualSilenceBoth selects "both".
k VisualSilenceBoth VisualSilence = "both"
)
// String returns the exact tmux spelling of v.
mfunc (v VisualSilence) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v VisualSilence) Valid() bool {
switch v {
case VisualSilenceOff, VisualSilenceOn, VisualSilenceBoth:
return true
default:
return false
}
}
// WindowSize is a typed value for the "window-size" tmux option. Its zero value is invalid.
Stype WindowSize string
const (
// WindowSizeLargest selects "largest".
k WindowSizeLargest WindowSize = "largest"
// WindowSizeSmallest selects "smallest".
k WindowSizeSmallest WindowSize = "smallest"
// WindowSizeManual selects "manual".
k WindowSizeManual WindowSize = "manual"
// WindowSizeLatest selects "latest".
k WindowSizeLatest WindowSize = "latest"
)
// String returns the exact tmux spelling of v.
mfunc (v WindowSize) String() string { return string(v) }
// Valid reports whether v belongs to the supported tmux-version union.
mfunc (v WindowSize) Valid() bool {
switch v {
case WindowSizeLargest, WindowSizeSmallest, WindowSizeManual, WindowSizeLatest:
return true
default:
return false
}
}
type generatedOptionKind uint8
const (
generatedOptionKindChoice generatedOptionKind = iota + 1
generatedOptionKindColour
generatedOptionKindCommand
generatedOptionKindFlag
generatedOptionKindKey
generatedOptionKindNumber
generatedOptionKindString
)
type generatedOptionValueKind uint8
const (
generatedOptionValueKindBool generatedOptionValueKind = iota + 1
generatedOptionValueKindInt64
generatedOptionValueKindString
generatedOptionValueKindSparseString
)
type generatedOptionScope uint8
const (
generatedOptionScopeServer generatedOptionScope = 1 << iota
generatedOptionScopeSession
generatedOptionScopeWindow
generatedOptionScopePane
)
type generatedOptionVariant struct {
minimum Version
kind generatedOptionKind
scopes generatedOptionScope
choices []string
}
type generatedOptionDefinition struct {
name string
goName string
valueKind generatedOptionValueKind
array bool
style bool
variants []generatedOptionVariant
}
type generatedOptionAlias struct {
name string
canonical string
}
// ControlNotificationKind identifies a tmux control-mode notification record. Its zero value is unknown
// and is not emitted by tmux. [ParseControlNotification] returns known
// values for the pinned wire vocabulary and rejects unknown notification records.
Stype ControlNotificationKind string
type generatedControlNotificationTail uint8
const (
generatedControlNotificationTailNone generatedControlNotificationTail = iota
generatedControlNotificationTailRequired
generatedControlNotificationTailOptional
generatedControlNotificationTailColon
)
type generatedControlNotificationDefinition struct {
kind ControlNotificationKind
minimum Version
prefixArguments int
tail generatedControlNotificationTail
allowEmptyTail bool
}
const (
generatedOptionSpecSchema = 2
generatedOptionSourceTag = "3.7b"
)
var generatedOptionFeatureFloor = Version{raw: "3.3a", major: 3, minor: 3, patch: 0}
var generatedOptionFeatureCeiling = Version{raw: "3.7", major: 3, minor: 7, patch: 0}
var generatedOptionAliases = [...]generatedOptionAlias{
{name: "clock-mode-color", canonical: "clock-mode-colour"},
{name: "cursor-color", canonical: "cursor-colour"},
{name: "display-panes-active-color", canonical: "display-panes-active-colour"},
{name: "display-panes-color", canonical: "display-panes-colour"},
{name: "pane-colors", canonical: "pane-colours"},
{name: "prompt-cursor-color", canonical: "prompt-cursor-colour"},
}
var generatedOptionDefinitions = [...]generatedOptionDefinition{
{name: "activity-action", goName: "ActivityAction", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"none", "any", "current", "other"}},
}},
{name: "aggressive-resize", goName: "AggressiveResize", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "allow-passthrough", goName: "AllowPassthrough", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{"off", "on", "all"}},
}},
{name: "allow-rename", goName: "AllowRename", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "allow-set-title", goName: "AllowSetTitle", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.5", major: 3, minor: 5, patch: 0}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "alternate-screen", goName: "AlternateScreen", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "assume-paste-time", goName: "AssumePasteTime", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "automatic-rename", goName: "AutomaticRename", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "automatic-rename-format", goName: "AutomaticRenameFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "backspace", goName: "Backspace", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindKey, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "base-index", goName: "BaseIndex", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "bell-action", goName: "BellAction", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"none", "any", "current", "other"}},
}},
{name: "buffer-limit", goName: "BufferLimit", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "clock-mode-colour", goName: "ClockModeColour", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindColour, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "clock-mode-style", goName: "ClockModeStyle", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"12", "24"}},
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"12", "24", "12-with-seconds", "24-with-seconds"}},
}},
{name: "codepoint-widths", goName: "CodepointWidths", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "command-alias", goName: "CommandAlias", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "copy-command", goName: "CopyCommand", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "copy-mode-current-line-number-style", goName: "CopyModeCurrentLineNumberStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "copy-mode-current-match-style", goName: "CopyModeCurrentMatchStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "copy-mode-line-number-style", goName: "CopyModeLineNumberStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "copy-mode-line-numbers", goName: "CopyModeLineNumbers", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"off", "default", "absolute", "relative", "hybrid"}},
}},
{name: "copy-mode-mark-style", goName: "CopyModeMarkStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "copy-mode-match-style", goName: "CopyModeMatchStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "copy-mode-position-format", goName: "CopyModePositionFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "copy-mode-position-style", goName: "CopyModePositionStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "copy-mode-selection-style", goName: "CopyModeSelectionStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "cursor-colour", goName: "CursorColour", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindColour, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "cursor-style", goName: "CursorStyle", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{"default", "blinking-block", "block", "blinking-underline", "underline", "blinking-bar", "bar"}},
}},
{name: "default-client-command", goName: "DefaultClientCommand", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "default-command", goName: "DefaultCommand", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "default-shell", goName: "DefaultShell", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "default-size", goName: "DefaultSize", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "default-terminal", goName: "DefaultTerminal", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "destroy-unattached", goName: "DestroyUnattached", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeSession, choices: []string{}},
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"off", "on", "keep-last", "keep-group"}},
}},
{name: "detach-on-destroy", goName: "DetachOnDestroy", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"off", "on", "no-detached"}},
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"off", "on", "no-detached", "previous", "next"}},
}},
{name: "display-panes-active-colour", goName: "DisplayPanesActiveColour", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindColour, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "display-panes-colour", goName: "DisplayPanesColour", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindColour, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "display-panes-time", goName: "DisplayPanesTime", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "display-time", goName: "DisplayTime", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "editor", goName: "Editor", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "escape-time", goName: "EscapeTime", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "exit-empty", goName: "ExitEmpty", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "exit-unattached", goName: "ExitUnattached", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "extended-keys", goName: "ExtendedKeys", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeServer, choices: []string{"off", "on", "always"}},
}},
{name: "extended-keys-format", goName: "ExtendedKeysFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.5", major: 3, minor: 5, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeServer, choices: []string{"csi-u", "xterm"}},
}},
{name: "fill-character", goName: "FillCharacter", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "focus-events", goName: "FocusEvents", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "focus-follows-mouse", goName: "FocusFollowsMouse", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "get-clipboard", goName: "GetClipboard", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeServer, choices: []string{"off", "buffer", "request", "both"}},
}},
{name: "history-file", goName: "HistoryFile", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "history-limit", goName: "HistoryLimit", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "initial-repeat-time", goName: "InitialRepeatTime", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "input-buffer-size", goName: "InputBufferSize", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "key-table", goName: "KeyTable", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "lock-after-time", goName: "LockAfterTime", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "lock-command", goName: "LockCommand", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "main-pane-height", goName: "MainPaneHeight", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "main-pane-width", goName: "MainPaneWidth", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "menu-border-lines", goName: "MenuBorderLines", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"single", "double", "heavy", "simple", "rounded", "padded", "none"}},
}},
{name: "menu-border-style", goName: "MenuBorderStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "menu-selected-style", goName: "MenuSelectedStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "menu-style", goName: "MenuStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "message-command-style", goName: "MessageCommandStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "message-format", goName: "MessageFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "message-limit", goName: "MessageLimit", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "message-line", goName: "MessageLine", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"0", "1", "2", "3", "4"}},
}},
{name: "message-style", goName: "MessageStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "mode-keys", goName: "ModeKeys", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"emacs", "vi"}},
}},
{name: "mode-style", goName: "ModeStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "monitor-activity", goName: "MonitorActivity", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "monitor-bell", goName: "MonitorBell", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "monitor-silence", goName: "MonitorSilence", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "mouse", goName: "Mouse", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "other-pane-height", goName: "OtherPaneHeight", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "other-pane-width", goName: "OtherPaneWidth", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "pane-active-border-style", goName: "PaneActiveBorderStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-base-index", goName: "PaneBaseIndex", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "pane-border-format", goName: "PaneBorderFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-border-indicators", goName: "PaneBorderIndicators", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"off", "colour", "arrows", "both"}},
}},
{name: "pane-border-lines", goName: "PaneBorderLines", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"single", "double", "heavy", "simple", "number"}},
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"single", "double", "heavy", "simple", "number", "spaces"}},
}},
{name: "pane-border-status", goName: "PaneBorderStatus", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"off", "top", "bottom"}},
}},
{name: "pane-border-style", goName: "PaneBorderStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-colours", goName: "PaneColours", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindColour, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-scrollbars", goName: "PaneScrollbars", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"off", "modal", "on"}},
}},
{name: "pane-scrollbars-position", goName: "PaneScrollbarsPosition", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"right", "left"}},
}},
{name: "pane-scrollbars-style", goName: "PaneScrollbarsStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-status-current-style", goName: "PaneStatusCurrentStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "pane-status-style", goName: "PaneStatusStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "popup-border-lines", goName: "PopupBorderLines", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"single", "double", "heavy", "simple", "rounded", "padded", "none"}},
}},
{name: "popup-border-style", goName: "PopupBorderStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "popup-style", goName: "PopupStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "prefix", goName: "Prefix", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindKey, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "prefix-timeout", goName: "PrefixTimeout", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.5", major: 3, minor: 5, patch: 0}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "prefix2", goName: "Prefix2", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindKey, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "prompt-command-cursor-style", goName: "PromptCommandCursorStyle", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"default", "blinking-block", "block", "blinking-underline", "underline", "blinking-bar", "bar"}},
}},
{name: "prompt-cursor-colour", goName: "PromptCursorColour", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindColour, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "prompt-cursor-style", goName: "PromptCursorStyle", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"default", "blinking-block", "block", "blinking-underline", "underline", "blinking-bar", "bar"}},
}},
{name: "prompt-history-limit", goName: "PromptHistoryLimit", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "remain-on-exit", goName: "RemainOnExit", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{"off", "on", "failed"}},
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{"off", "on", "failed", "key"}},
}},
{name: "remain-on-exit-format", goName: "RemainOnExitFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "renumber-windows", goName: "RenumberWindows", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "repeat-time", goName: "RepeatTime", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "scroll-on-clear", goName: "ScrollOnClear", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "session-status-current-style", goName: "SessionStatusCurrentStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "session-status-style", goName: "SessionStatusStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "set-clipboard", goName: "SetClipboard", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeServer, choices: []string{"off", "external", "on"}},
}},
{name: "set-titles", goName: "SetTitles", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "set-titles-string", goName: "SetTitlesString", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "silence-action", goName: "SilenceAction", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"none", "any", "current", "other"}},
}},
{name: "status", goName: "Status", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"off", "on", "2", "3", "4", "5"}},
}},
{name: "status-bg", goName: "StatusBG", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindColour, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-fg", goName: "StatusFG", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindColour, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-format", goName: "StatusFormat", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-interval", goName: "StatusInterval", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-justify", goName: "StatusJustify", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"left", "centre", "right", "absolute-centre"}},
}},
{name: "status-keys", goName: "StatusKeys", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"emacs", "vi"}},
}},
{name: "status-left", goName: "StatusLeft", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-left-length", goName: "StatusLeftLength", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-left-style", goName: "StatusLeftStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-position", goName: "StatusPosition", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"top", "bottom"}},
}},
{name: "status-right", goName: "StatusRight", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-right-length", goName: "StatusRightLength", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-right-style", goName: "StatusRightStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "status-style", goName: "StatusStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "synchronize-panes", goName: "SynchronizePanes", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "terminal-features", goName: "TerminalFeatures", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "terminal-overrides", goName: "TerminalOverrides", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "tiled-layout-max-columns", goName: "TiledLayoutMaxColumns", valueKind: generatedOptionValueKindInt64, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindNumber, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "tree-mode-preview-format", goName: "TreeModePreviewFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "tree-mode-preview-style", goName: "TreeModePreviewStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "update-environment", goName: "UpdateEnvironment", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "user-keys", goName: "UserKeys", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "variation-selector-always-wide", goName: "VariationSelectorAlwaysWide", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeServer, choices: []string{}},
}},
{name: "visual-activity", goName: "VisualActivity", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"off", "on", "both"}},
}},
{name: "visual-bell", goName: "VisualBell", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"off", "on", "both"}},
}},
{name: "visual-silence", goName: "VisualSilence", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeSession, choices: []string{"off", "on", "both"}},
}},
{name: "window-active-style", goName: "WindowActiveStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "window-pane-current-status-format", goName: "WindowPaneCurrentStatusFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-pane-status-format", goName: "WindowPaneStatusFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.7", major: 3, minor: 7, patch: 0}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-size", goName: "WindowSize", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindChoice, scopes: generatedOptionScopeWindow, choices: []string{"largest", "smallest", "manual", "latest"}},
}},
{name: "window-status-activity-style", goName: "WindowStatusActivityStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-status-bell-style", goName: "WindowStatusBellStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-status-current-format", goName: "WindowStatusCurrentFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-status-current-style", goName: "WindowStatusCurrentStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-status-format", goName: "WindowStatusFormat", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-status-last-style", goName: "WindowStatusLastStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-status-separator", goName: "WindowStatusSeparator", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-status-style", goName: "WindowStatusStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-style", goName: "WindowStyle", valueKind: generatedOptionValueKindString, array: false, style: true, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "word-separators", goName: "WordSeparators", valueKind: generatedOptionValueKindString, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindString, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "wrap-search", goName: "WrapSearch", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "xterm-keys", goName: "XTermKeys", valueKind: generatedOptionValueKindBool, array: false, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindFlag, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
}
var generatedHookDefinitions = [...]generatedOptionDefinition{
{name: "after-bind-key", goName: "AfterBindKey", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-capture-pane", goName: "AfterCapturePane", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-copy-mode", goName: "AfterCopyMode", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-display-message", goName: "AfterDisplayMessage", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-display-panes", goName: "AfterDisplayPanes", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-kill-pane", goName: "AfterKillPane", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-list-buffers", goName: "AfterListBuffers", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-list-clients", goName: "AfterListClients", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-list-keys", goName: "AfterListKeys", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-list-panes", goName: "AfterListPanes", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-list-sessions", goName: "AfterListSessions", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-list-windows", goName: "AfterListWindows", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-load-buffer", goName: "AfterLoadBuffer", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-lock-server", goName: "AfterLockServer", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-new-session", goName: "AfterNewSession", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-new-window", goName: "AfterNewWindow", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-paste-buffer", goName: "AfterPasteBuffer", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-pipe-pane", goName: "AfterPipePane", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-queue", goName: "AfterQueue", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-refresh-client", goName: "AfterRefreshClient", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-rename-session", goName: "AfterRenameSession", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-rename-window", goName: "AfterRenameWindow", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-resize-pane", goName: "AfterResizePane", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-resize-window", goName: "AfterResizeWindow", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-save-buffer", goName: "AfterSaveBuffer", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-select-layout", goName: "AfterSelectLayout", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-select-pane", goName: "AfterSelectPane", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-select-window", goName: "AfterSelectWindow", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-send-keys", goName: "AfterSendKeys", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-set-buffer", goName: "AfterSetBuffer", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-set-environment", goName: "AfterSetEnvironment", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-set-hook", goName: "AfterSetHook", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-set-option", goName: "AfterSetOption", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-show-environment", goName: "AfterShowEnvironment", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-show-messages", goName: "AfterShowMessages", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-show-options", goName: "AfterShowOptions", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-split-window", goName: "AfterSplitWindow", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "after-unbind-key", goName: "AfterUnbindKey", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "alert-activity", goName: "AlertActivity", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "alert-bell", goName: "AlertBell", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "alert-silence", goName: "AlertSilence", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-active", goName: "ClientActive", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-attached", goName: "ClientAttached", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-dark-theme", goName: "ClientDarkTheme", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-detached", goName: "ClientDetached", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-focus-in", goName: "ClientFocusIn", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-focus-out", goName: "ClientFocusOut", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-light-theme", goName: "ClientLightTheme", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.6", major: 3, minor: 6, patch: 0}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-resized", goName: "ClientResized", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "client-session-changed", goName: "ClientSessionChanged", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "command-error", goName: "CommandError", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{raw: "3.5", major: 3, minor: 5, patch: 0}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "pane-died", goName: "PaneDied", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-exited", goName: "PaneExited", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-focus-in", goName: "PaneFocusIn", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-focus-out", goName: "PaneFocusOut", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-mode-changed", goName: "PaneModeChanged", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-set-clipboard", goName: "PaneSetClipboard", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "pane-title-changed", goName: "PaneTitleChanged", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow | generatedOptionScopePane, choices: []string{}},
}},
{name: "session-closed", goName: "SessionClosed", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "session-created", goName: "SessionCreated", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "session-renamed", goName: "SessionRenamed", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "session-window-changed", goName: "SessionWindowChanged", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "window-layout-changed", goName: "WindowLayoutChanged", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-linked", goName: "WindowLinked", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
{name: "window-pane-changed", goName: "WindowPaneChanged", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-renamed", goName: "WindowRenamed", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-resized", goName: "WindowResized", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeWindow, choices: []string{}},
}},
{name: "window-unlinked", goName: "WindowUnlinked", valueKind: generatedOptionValueKindSparseString, array: true, style: false, variants: []generatedOptionVariant{
{minimum: Version{}, kind: generatedOptionKindCommand, scopes: generatedOptionScopeSession, choices: []string{}},
}},
}
const (
// ControlNotificationClientDetached identifies the %client-detached notification. Its wire grammar is %client-detached <client>.
// ParseControlNotification returns its arguments as client tail.
k ControlNotificationClientDetached ControlNotificationKind = "%client-detached"
// ControlNotificationClientSessionChanged identifies the %client-session-changed notification. Its wire grammar is %client-session-changed <client> <session ID> <session name>.
// ParseControlNotification returns its arguments as client, session ID, session name tail.
k ControlNotificationClientSessionChanged ControlNotificationKind = "%client-session-changed"
// ControlNotificationConfigError identifies the %config-error notification, available since tmux 3.4. Its wire grammar is %config-error <text>.
// ParseControlNotification returns its arguments as text tail.
k ControlNotificationConfigError ControlNotificationKind = "%config-error"
// ControlNotificationContinue identifies the %continue notification. Its wire grammar is %continue <pane ID>.
// ParseControlNotification returns its arguments as pane ID.
k ControlNotificationContinue ControlNotificationKind = "%continue"
// ControlNotificationExit identifies the %exit notification. Its wire grammar is %exit or %exit <reason>.
// ParseControlNotification returns its arguments as reason tail.
k ControlNotificationExit ControlNotificationKind = "%exit"
// ControlNotificationExtendedOutput identifies the %extended-output notification. Its wire grammar is %extended-output <pane ID> <age> { zero or more <reserved argument> } : <data>.
// ParseControlNotification returns its arguments as the prefix arguments, then zero or more reserved arguments, then the data tail; the prefix arguments are pane ID, age.
// Its tail may be empty.
k ControlNotificationExtendedOutput ControlNotificationKind = "%extended-output"
// ControlNotificationLayoutChange identifies the %layout-change notification. Its wire grammar is %layout-change <window ID> <layout> <visible layout> <flags>.
// ParseControlNotification returns its arguments as window ID, layout, visible layout, flags tail.
// Its tail may be empty.
k ControlNotificationLayoutChange ControlNotificationKind = "%layout-change"
// ControlNotificationMessage identifies the %message notification, available since tmux 3.4. Its wire grammar is %message <text>.
// ParseControlNotification returns its arguments as text tail.
// Its tail may be empty.
k ControlNotificationMessage ControlNotificationKind = "%message"
// ControlNotificationOutput identifies the %output notification. Its wire grammar is %output <pane ID> <data>.
// ParseControlNotification returns its arguments as pane ID, data tail.
// Its tail may be empty.
k ControlNotificationOutput ControlNotificationKind = "%output"
// ControlNotificationPaneModeChanged identifies the %pane-mode-changed notification. Its wire grammar is %pane-mode-changed <pane ID>.
// ParseControlNotification returns its arguments as pane ID.
k ControlNotificationPaneModeChanged ControlNotificationKind = "%pane-mode-changed"
// ControlNotificationPasteBufferChanged identifies the %paste-buffer-changed notification, available since tmux 3.4. Its wire grammar is %paste-buffer-changed <name>.
// ParseControlNotification returns its arguments as name tail.
k ControlNotificationPasteBufferChanged ControlNotificationKind = "%paste-buffer-changed"
// ControlNotificationPasteBufferDeleted identifies the %paste-buffer-deleted notification, available since tmux 3.4. Its wire grammar is %paste-buffer-deleted <name>.
// ParseControlNotification returns its arguments as name tail.
k ControlNotificationPasteBufferDeleted ControlNotificationKind = "%paste-buffer-deleted"
// ControlNotificationPause identifies the %pause notification. Its wire grammar is %pause <pane ID>.
// ParseControlNotification returns its arguments as pane ID.
k ControlNotificationPause ControlNotificationKind = "%pause"
// ControlNotificationSessionChanged identifies the %session-changed notification. Its wire grammar is %session-changed <session ID> <session name>.
// ParseControlNotification returns its arguments as session ID, session name tail.
k ControlNotificationSessionChanged ControlNotificationKind = "%session-changed"
// ControlNotificationSessionRenamed identifies the %session-renamed notification. Its wire grammar is %session-renamed <session ID> <session name>.
// ParseControlNotification returns its arguments as session ID, session name tail.
k ControlNotificationSessionRenamed ControlNotificationKind = "%session-renamed"
// ControlNotificationSessionWindowChanged identifies the %session-window-changed notification. Its wire grammar is %session-window-changed <session ID> <window ID>.
// ParseControlNotification returns its arguments as session ID, window ID.
k ControlNotificationSessionWindowChanged ControlNotificationKind = "%session-window-changed"
// ControlNotificationSessionsChanged identifies the %sessions-changed notification. Its wire grammar is %sessions-changed.
// ParseControlNotification returns its arguments as no arguments.
k ControlNotificationSessionsChanged ControlNotificationKind = "%sessions-changed"
// ControlNotificationSubscriptionChanged identifies the %subscription-changed notification. Its wire grammar is %subscription-changed <name> <session ID> <window ID> <window index> <pane ID> { zero or more <reserved argument> } : <value>.
// ParseControlNotification returns its arguments as the prefix arguments, then zero or more reserved arguments, then the value tail; the prefix arguments are name, session ID, window ID, window index, pane ID.
// Its tail may be empty.
k ControlNotificationSubscriptionChanged ControlNotificationKind = "%subscription-changed"
// ControlNotificationUnlinkedWindowAdd identifies the %unlinked-window-add notification. Its wire grammar is %unlinked-window-add <window ID>.
// ParseControlNotification returns its arguments as window ID.
k ControlNotificationUnlinkedWindowAdd ControlNotificationKind = "%unlinked-window-add"
// ControlNotificationUnlinkedWindowClose identifies the %unlinked-window-close notification. Its wire grammar is %unlinked-window-close <window ID>.
// ParseControlNotification returns its arguments as window ID.
k ControlNotificationUnlinkedWindowClose ControlNotificationKind = "%unlinked-window-close"
// ControlNotificationUnlinkedWindowRenamed identifies the %unlinked-window-renamed notification. Its wire grammar is %unlinked-window-renamed <window ID> <name>.
// ParseControlNotification returns its arguments as window ID, name tail.
k ControlNotificationUnlinkedWindowRenamed ControlNotificationKind = "%unlinked-window-renamed"
// ControlNotificationWindowAdd identifies the %window-add notification. Its wire grammar is %window-add <window ID>.
// ParseControlNotification returns its arguments as window ID.
k ControlNotificationWindowAdd ControlNotificationKind = "%window-add"
// ControlNotificationWindowClose identifies the %window-close notification. Its wire grammar is %window-close <window ID>.
// ParseControlNotification returns its arguments as window ID.
k ControlNotificationWindowClose ControlNotificationKind = "%window-close"
// ControlNotificationWindowPaneChanged identifies the %window-pane-changed notification. Its wire grammar is %window-pane-changed <window ID> <pane ID>.
// ParseControlNotification returns its arguments as window ID, pane ID.
k ControlNotificationWindowPaneChanged ControlNotificationKind = "%window-pane-changed"
// ControlNotificationWindowRenamed identifies the %window-renamed notification. Its wire grammar is %window-renamed <window ID> <name>.
// ParseControlNotification returns its arguments as window ID, name tail.
k ControlNotificationWindowRenamed ControlNotificationKind = "%window-renamed"
)
var generatedControlNotificationDefinitions = [...]generatedControlNotificationDefinition{
{kind: ControlNotificationClientDetached, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 0, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationClientSessionChanged, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 2, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationConfigError, minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, prefixArguments: 0, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationContinue, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationExit, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 0, tail: generatedControlNotificationTailOptional, allowEmptyTail: false},
{kind: ControlNotificationExtendedOutput, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 2, tail: generatedControlNotificationTailColon, allowEmptyTail: true},
{kind: ControlNotificationLayoutChange, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 3, tail: generatedControlNotificationTailRequired, allowEmptyTail: true},
{kind: ControlNotificationMessage, minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, prefixArguments: 0, tail: generatedControlNotificationTailRequired, allowEmptyTail: true},
{kind: ControlNotificationOutput, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailRequired, allowEmptyTail: true},
{kind: ControlNotificationPaneModeChanged, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationPasteBufferChanged, minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, prefixArguments: 0, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationPasteBufferDeleted, minimum: Version{raw: "3.4", major: 3, minor: 4, patch: 0}, prefixArguments: 0, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationPause, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationSessionChanged, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationSessionRenamed, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationSessionWindowChanged, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 2, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationSessionsChanged, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 0, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationSubscriptionChanged, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 5, tail: generatedControlNotificationTailColon, allowEmptyTail: true},
{kind: ControlNotificationUnlinkedWindowAdd, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationUnlinkedWindowClose, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationUnlinkedWindowRenamed, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
{kind: ControlNotificationWindowAdd, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationWindowClose, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationWindowPaneChanged, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 2, tail: generatedControlNotificationTailNone, allowEmptyTail: false},
{kind: ControlNotificationWindowRenamed, minimum: Version{raw: "3.3a", major: 3, minor: 3, patch: 0}, prefixArguments: 1, tail: generatedControlNotificationTailRequired, allowEmptyTail: false},
}
// MinimumVersion returns the oldest supported [Version] that emits k, which is
// [MinimumSupportedVersion] for a notification every supported tmux emits. It
// returns ok == false for the zero value and unknown kinds.
mfunc (k ControlNotificationKind) MinimumVersion() (Version, bool) {
for _, definition := range generatedControlNotificationDefinitions {
if definition.kind == k {
return definition.minimum, true
}
}
return Version{}, false
}
const (
generatedServerOptionCount = 25
generatedSessionOptionCount = 54
generatedWindowOptionCount = 74
generatedPaneOptionCount = 19
generatedServerHookCount = 57
generatedSessionHookCount = 57
generatedWindowHookCount = 11
generatedPaneHookCount = 7
)
// ServerOptionValues is an immutable materialized view of known server option values; its zero value is empty and it does not refresh.
// Obtain it with [Server.Options]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [Server.RawOption] for caller-named or undecoded values.
Stype ServerOptionValues struct {
backspace OptionValue[string]
bufferLimit OptionValue[int64]
codepointWidths OptionValue[SparseArray[string]]
commandAlias OptionValue[SparseArray[string]]
copyCommand OptionValue[string]
defaultClientCommand OptionValue[string]
defaultTerminal OptionValue[string]
editor OptionValue[string]
escapeTime OptionValue[time.Duration]
exitEmpty OptionValue[bool]
exitUnattached OptionValue[bool]
extendedKeys OptionValue[ExtendedKeys]
extendedKeysFormat OptionValue[ExtendedKeysFormat]
focusEvents OptionValue[bool]
getClipboard OptionValue[GetClipboard]
historyFile OptionValue[string]
inputBufferSize OptionValue[int64]
messageLimit OptionValue[int64]
prefixTimeout OptionValue[time.Duration]
promptHistoryLimit OptionValue[int64]
setClipboard OptionValue[SetClipboard]
terminalFeatures OptionValue[SparseArray[string]]
terminalOverrides OptionValue[SparseArray[string]]
userKeys OptionValue[SparseArray[string]]
variationSelectorAlwaysWide OptionValue[bool]
}
// Backspace returns materialized "backspace" as [OptionValue] with value type OptionValue[string] from server option values; it does not query tmux.
// Available as KEY; set it with [Server.SetBackspace].
mfunc (v ServerOptionValues) Backspace() OptionValue[string] { return v.backspace }
// BufferLimit returns materialized "buffer-limit" as [OptionValue] with value type OptionValue[int64] from server option values; it does not query tmux.
// Available as NUMBER; set it with [Server.SetBufferLimit].
mfunc (v ServerOptionValues) BufferLimit() OptionValue[int64] { return v.bufferLimit }
// CodepointWidths returns materialized "codepoint-widths" as [OptionValue] with value type OptionValue[SparseArray[string]] from server option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Server.SetCodepointWidths].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerOptionValues) CodepointWidths() OptionValue[SparseArray[string]] {
return v.codepointWidths
}
// CommandAlias returns materialized "command-alias" as [OptionValue] with value type OptionValue[SparseArray[string]] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetCommandAlias].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerOptionValues) CommandAlias() OptionValue[SparseArray[string]] { return v.commandAlias }
// CopyCommand returns materialized "copy-command" as [OptionValue] with value type OptionValue[string] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetCopyCommand].
mfunc (v ServerOptionValues) CopyCommand() OptionValue[string] { return v.copyCommand }
// DefaultClientCommand returns materialized "default-client-command" as [OptionValue] with value type OptionValue[string] from server option values; it does not query tmux.
// Available as COMMAND since tmux 3.6; set it with [Server.SetDefaultClientCommand].
mfunc (v ServerOptionValues) DefaultClientCommand() OptionValue[string] { return v.defaultClientCommand }
// DefaultTerminal returns materialized "default-terminal" as [OptionValue] with value type OptionValue[string] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetDefaultTerminal].
mfunc (v ServerOptionValues) DefaultTerminal() OptionValue[string] { return v.defaultTerminal }
// Editor returns materialized "editor" as [OptionValue] with value type OptionValue[string] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetEditor].
mfunc (v ServerOptionValues) Editor() OptionValue[string] { return v.editor }
// EscapeTime returns materialized "escape-time" as [OptionValue] with value type OptionValue[time.Duration] from server option values; it does not query tmux.
// Available as NUMBER; set it with [Server.SetEscapeTime].
mfunc (v ServerOptionValues) EscapeTime() OptionValue[time.Duration] { return v.escapeTime }
// ExitEmpty returns materialized "exit-empty" as [OptionValue] with value type OptionValue[bool] from server option values; it does not query tmux.
// Available as FLAG; set it with [Server.SetExitEmpty].
mfunc (v ServerOptionValues) ExitEmpty() OptionValue[bool] { return v.exitEmpty }
// ExitUnattached returns materialized "exit-unattached" as [OptionValue] with value type OptionValue[bool] from server option values; it does not query tmux.
// Available as FLAG; set it with [Server.SetExitUnattached].
mfunc (v ServerOptionValues) ExitUnattached() OptionValue[bool] { return v.exitUnattached }
// ExtendedKeys returns materialized "extended-keys" as [OptionValue] with value type OptionValue[ExtendedKeys] from server option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "always"); set it with [Server.SetExtendedKeys].
mfunc (v ServerOptionValues) ExtendedKeys() OptionValue[ExtendedKeys] { return v.extendedKeys }
// ExtendedKeysFormat returns materialized "extended-keys-format" as [OptionValue] with value type OptionValue[ExtendedKeysFormat] from server option values; it does not query tmux.
// Available as CHOICE since tmux 3.5 (choices: "csi-u", "xterm"); set it with [Server.SetExtendedKeysFormat].
mfunc (v ServerOptionValues) ExtendedKeysFormat() OptionValue[ExtendedKeysFormat] {
return v.extendedKeysFormat
}
// FocusEvents returns materialized "focus-events" as [OptionValue] with value type OptionValue[bool] from server option values; it does not query tmux.
// Available as FLAG; set it with [Server.SetFocusEvents].
mfunc (v ServerOptionValues) FocusEvents() OptionValue[bool] { return v.focusEvents }
// GetClipboard returns materialized "get-clipboard" as [OptionValue] with value type OptionValue[GetClipboard] from server option values; it does not query tmux.
// Available as CHOICE since tmux 3.7 (choices: "off", "buffer", "request", "both"); set it with [Server.SetGetClipboard].
mfunc (v ServerOptionValues) GetClipboard() OptionValue[GetClipboard] { return v.getClipboard }
// HistoryFile returns materialized "history-file" as [OptionValue] with value type OptionValue[string] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetHistoryFile].
mfunc (v ServerOptionValues) HistoryFile() OptionValue[string] { return v.historyFile }
// InputBufferSize returns materialized "input-buffer-size" as [OptionValue] with value type OptionValue[int64] from server option values; it does not query tmux.
// Available as NUMBER since tmux 3.6; set it with [Server.SetInputBufferSize].
mfunc (v ServerOptionValues) InputBufferSize() OptionValue[int64] { return v.inputBufferSize }
// MessageLimit returns materialized "message-limit" as [OptionValue] with value type OptionValue[int64] from server option values; it does not query tmux.
// Available as NUMBER; set it with [Server.SetMessageLimit].
mfunc (v ServerOptionValues) MessageLimit() OptionValue[int64] { return v.messageLimit }
// PrefixTimeout returns materialized "prefix-timeout" as [OptionValue] with value type OptionValue[time.Duration] from server option values; it does not query tmux.
// Available as NUMBER since tmux 3.5; set it with [Server.SetPrefixTimeout].
mfunc (v ServerOptionValues) PrefixTimeout() OptionValue[time.Duration] { return v.prefixTimeout }
// PromptHistoryLimit returns materialized "prompt-history-limit" as [OptionValue] with value type OptionValue[int64] from server option values; it does not query tmux.
// Available as NUMBER; set it with [Server.SetPromptHistoryLimit].
mfunc (v ServerOptionValues) PromptHistoryLimit() OptionValue[int64] { return v.promptHistoryLimit }
// SetClipboard returns materialized "set-clipboard" as [OptionValue] with value type OptionValue[SetClipboard] from server option values; it does not query tmux.
// Available as CHOICE (choices: "off", "external", "on"); set it with [Server.SetClipboard].
mfunc (v ServerOptionValues) SetClipboard() OptionValue[SetClipboard] { return v.setClipboard }
// TerminalFeatures returns materialized "terminal-features" as [OptionValue] with value type OptionValue[SparseArray[string]] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetTerminalFeatures].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerOptionValues) TerminalFeatures() OptionValue[SparseArray[string]] {
return v.terminalFeatures
}
// TerminalOverrides returns materialized "terminal-overrides" as [OptionValue] with value type OptionValue[SparseArray[string]] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetTerminalOverrides].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerOptionValues) TerminalOverrides() OptionValue[SparseArray[string]] {
return v.terminalOverrides
}
// UserKeys returns materialized "user-keys" as [OptionValue] with value type OptionValue[SparseArray[string]] from server option values; it does not query tmux.
// Available as STRING; set it with [Server.SetUserKeys].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerOptionValues) UserKeys() OptionValue[SparseArray[string]] { return v.userKeys }
// VariationSelectorAlwaysWide returns materialized "variation-selector-always-wide" as [OptionValue] with value type OptionValue[bool] from server option values; it does not query tmux.
// Available as FLAG since tmux 3.6; set it with [Server.SetVariationSelectorAlwaysWide].
mfunc (v ServerOptionValues) VariationSelectorAlwaysWide() OptionValue[bool] {
return v.variationSelectorAlwaysWide
}
func newServerOptionValues(values []decodedOptionValue) ServerOptionValues {
var result ServerOptionValues
for _, value := range values {
switch value.name {
case "backspace":
result.backspace = optionValueFromDecoded(value.stringValue, value.origin)
case "buffer-limit":
result.bufferLimit = optionValueFromDecoded(value.int64Value, value.origin)
case "codepoint-widths":
result.codepointWidths = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "command-alias":
result.commandAlias = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "copy-command":
result.copyCommand = optionValueFromDecoded(value.stringValue, value.origin)
case "default-client-command":
result.defaultClientCommand = optionValueFromDecoded(value.stringValue, value.origin)
case "default-terminal":
result.defaultTerminal = optionValueFromDecoded(value.stringValue, value.origin)
case "editor":
result.editor = optionValueFromDecoded(value.stringValue, value.origin)
case "escape-time":
result.escapeTime = optionValueFromDecoded(time.Duration(value.int64Value)*time.Millisecond, value.origin)
case "exit-empty":
result.exitEmpty = optionValueFromDecoded(value.boolValue, value.origin)
case "exit-unattached":
result.exitUnattached = optionValueFromDecoded(value.boolValue, value.origin)
case "extended-keys":
result.extendedKeys = optionValueFromDecoded(ExtendedKeys(value.stringValue), value.origin)
case "extended-keys-format":
result.extendedKeysFormat = optionValueFromDecoded(ExtendedKeysFormat(value.stringValue), value.origin)
case "focus-events":
result.focusEvents = optionValueFromDecoded(value.boolValue, value.origin)
case "get-clipboard":
result.getClipboard = optionValueFromDecoded(GetClipboard(value.stringValue), value.origin)
case "history-file":
result.historyFile = optionValueFromDecoded(value.stringValue, value.origin)
case "input-buffer-size":
result.inputBufferSize = optionValueFromDecoded(value.int64Value, value.origin)
case "message-limit":
result.messageLimit = optionValueFromDecoded(value.int64Value, value.origin)
case "prefix-timeout":
result.prefixTimeout = optionValueFromDecoded(time.Duration(value.int64Value)*time.Millisecond, value.origin)
case "prompt-history-limit":
result.promptHistoryLimit = optionValueFromDecoded(value.int64Value, value.origin)
case "set-clipboard":
result.setClipboard = optionValueFromDecoded(SetClipboard(value.stringValue), value.origin)
case "terminal-features":
result.terminalFeatures = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "terminal-overrides":
result.terminalOverrides = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "user-keys":
result.userKeys = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "variation-selector-always-wide":
result.variationSelectorAlwaysWide = optionValueFromDecoded(value.boolValue, value.origin)
}
}
return result
}
// SessionOptionValues is an immutable materialized view of known session option values; its zero value is empty and it does not refresh.
// Obtain it with [Session.Options] or [GlobalSessionScope.Options]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [Session.RawOption] or [GlobalSessionScope.RawOption] for caller-named or undecoded values.
Stype SessionOptionValues struct {
activityAction OptionValue[ActivityAction]
assumePasteTime OptionValue[time.Duration]
baseIndex OptionValue[int64]
bellAction OptionValue[BellAction]
defaultCommand OptionValue[string]
defaultShell OptionValue[string]
defaultSize OptionValue[string]
destroyUnattached OptionValue[DestroyUnattached]
detachOnDestroy OptionValue[DetachOnDestroy]
displayPanesActiveColour OptionValue[string]
displayPanesColour OptionValue[string]
displayPanesTime OptionValue[time.Duration]
displayTime OptionValue[time.Duration]
focusFollowsMouse OptionValue[bool]
historyLimit OptionValue[int64]
initialRepeatTime OptionValue[time.Duration]
keyTable OptionValue[string]
lockAfterTime OptionValue[time.Duration]
lockCommand OptionValue[string]
messageCommandStyle OptionValue[string]
messageFormat OptionValue[string]
messageLine OptionValue[MessageLine]
messageStyle OptionValue[string]
mouse OptionValue[bool]
prefix OptionValue[string]
prefix2 OptionValue[string]
promptCommandCursorStyle OptionValue[PromptCommandCursorStyle]
promptCursorColour OptionValue[string]
promptCursorStyle OptionValue[PromptCursorStyle]
renumberWindows OptionValue[bool]
repeatTime OptionValue[time.Duration]
setTitles OptionValue[bool]
setTitlesString OptionValue[string]
silenceAction OptionValue[SilenceAction]
status OptionValue[Status]
statusBG OptionValue[string]
statusFG OptionValue[string]
statusFormat OptionValue[SparseArray[string]]
statusInterval OptionValue[time.Duration]
statusJustify OptionValue[StatusJustify]
statusKeys OptionValue[StatusKeys]
statusLeft OptionValue[string]
statusLeftLength OptionValue[int64]
statusLeftStyle OptionValue[string]
statusPosition OptionValue[StatusPosition]
statusRight OptionValue[string]
statusRightLength OptionValue[int64]
statusRightStyle OptionValue[string]
statusStyle OptionValue[string]
updateEnvironment OptionValue[SparseArray[string]]
visualActivity OptionValue[VisualActivity]
visualBell OptionValue[VisualBell]
visualSilence OptionValue[VisualSilence]
wordSeparators OptionValue[string]
}
// ActivityAction returns materialized "activity-action" as [OptionValue] with value type OptionValue[ActivityAction] from session option values; it does not query tmux.
// Available as CHOICE (choices: "none", "any", "current", "other"); set it with [Session.SetActivityAction] or [GlobalSessionScope.SetActivityAction].
mfunc (v SessionOptionValues) ActivityAction() OptionValue[ActivityAction] { return v.activityAction }
// AssumePasteTime returns materialized "assume-paste-time" as [OptionValue] with value type OptionValue[time.Duration] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetAssumePasteTime] or [GlobalSessionScope.SetAssumePasteTime].
mfunc (v SessionOptionValues) AssumePasteTime() OptionValue[time.Duration] { return v.assumePasteTime }
// BaseIndex returns materialized "base-index" as [OptionValue] with value type OptionValue[int64] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetBaseIndex] or [GlobalSessionScope.SetBaseIndex].
mfunc (v SessionOptionValues) BaseIndex() OptionValue[int64] { return v.baseIndex }
// BellAction returns materialized "bell-action" as [OptionValue] with value type OptionValue[BellAction] from session option values; it does not query tmux.
// Available as CHOICE (choices: "none", "any", "current", "other"); set it with [Session.SetBellAction] or [GlobalSessionScope.SetBellAction].
mfunc (v SessionOptionValues) BellAction() OptionValue[BellAction] { return v.bellAction }
// DefaultCommand returns materialized "default-command" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetDefaultCommand] or [GlobalSessionScope.SetDefaultCommand].
mfunc (v SessionOptionValues) DefaultCommand() OptionValue[string] { return v.defaultCommand }
// DefaultShell returns materialized "default-shell" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetDefaultShell] or [GlobalSessionScope.SetDefaultShell].
mfunc (v SessionOptionValues) DefaultShell() OptionValue[string] { return v.defaultShell }
// DefaultSize returns materialized "default-size" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetDefaultSize] or [GlobalSessionScope.SetDefaultSize].
mfunc (v SessionOptionValues) DefaultSize() OptionValue[string] { return v.defaultSize }
// DestroyUnattached returns materialized "destroy-unattached" as [OptionValue] with value type OptionValue[DestroyUnattached] from session option values; it does not query tmux.
// Available as FLAG; CHOICE since tmux 3.4 (choices: "off", "on", "keep-last", "keep-group"); set it with [Session.SetDestroyUnattached] or [GlobalSessionScope.SetDestroyUnattached].
mfunc (v SessionOptionValues) DestroyUnattached() OptionValue[DestroyUnattached] {
return v.destroyUnattached
}
// DetachOnDestroy returns materialized "detach-on-destroy" as [OptionValue] with value type OptionValue[DetachOnDestroy] from session option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "no-detached"); CHOICE since tmux 3.4 (choices: "off", "on", "no-detached", "previous", "next"); set it with [Session.SetDetachOnDestroy] or [GlobalSessionScope.SetDetachOnDestroy].
mfunc (v SessionOptionValues) DetachOnDestroy() OptionValue[DetachOnDestroy] { return v.detachOnDestroy }
// DisplayPanesActiveColour returns materialized "display-panes-active-colour" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as COLOUR; set it with [Session.SetDisplayPanesActiveColour] or [GlobalSessionScope.SetDisplayPanesActiveColour].
mfunc (v SessionOptionValues) DisplayPanesActiveColour() OptionValue[string] {
return v.displayPanesActiveColour
}
// DisplayPanesColour returns materialized "display-panes-colour" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as COLOUR; set it with [Session.SetDisplayPanesColour] or [GlobalSessionScope.SetDisplayPanesColour].
mfunc (v SessionOptionValues) DisplayPanesColour() OptionValue[string] { return v.displayPanesColour }
// DisplayPanesTime returns materialized "display-panes-time" as [OptionValue] with value type OptionValue[time.Duration] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetDisplayPanesTime] or [GlobalSessionScope.SetDisplayPanesTime].
mfunc (v SessionOptionValues) DisplayPanesTime() OptionValue[time.Duration] { return v.displayPanesTime }
// DisplayTime returns materialized "display-time" as [OptionValue] with value type OptionValue[time.Duration] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetDisplayTime] or [GlobalSessionScope.SetDisplayTime].
mfunc (v SessionOptionValues) DisplayTime() OptionValue[time.Duration] { return v.displayTime }
// FocusFollowsMouse returns materialized "focus-follows-mouse" as [OptionValue] with value type OptionValue[bool] from session option values; it does not query tmux.
// Available as FLAG since tmux 3.7; set it with [Session.SetFocusFollowsMouse] or [GlobalSessionScope.SetFocusFollowsMouse].
mfunc (v SessionOptionValues) FocusFollowsMouse() OptionValue[bool] { return v.focusFollowsMouse }
// HistoryLimit returns materialized "history-limit" as [OptionValue] with value type OptionValue[int64] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetHistoryLimit] or [GlobalSessionScope.SetHistoryLimit].
mfunc (v SessionOptionValues) HistoryLimit() OptionValue[int64] { return v.historyLimit }
// InitialRepeatTime returns materialized "initial-repeat-time" as [OptionValue] with value type OptionValue[time.Duration] from session option values; it does not query tmux.
// Available as NUMBER since tmux 3.6; set it with [Session.SetInitialRepeatTime] or [GlobalSessionScope.SetInitialRepeatTime].
mfunc (v SessionOptionValues) InitialRepeatTime() OptionValue[time.Duration] {
return v.initialRepeatTime
}
// KeyTable returns materialized "key-table" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetKeyTable] or [GlobalSessionScope.SetKeyTable].
mfunc (v SessionOptionValues) KeyTable() OptionValue[string] { return v.keyTable }
// LockAfterTime returns materialized "lock-after-time" as [OptionValue] with value type OptionValue[time.Duration] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetLockAfterTime] or [GlobalSessionScope.SetLockAfterTime].
mfunc (v SessionOptionValues) LockAfterTime() OptionValue[time.Duration] { return v.lockAfterTime }
// LockCommand returns materialized "lock-command" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetLockCommand] or [GlobalSessionScope.SetLockCommand].
mfunc (v SessionOptionValues) LockCommand() OptionValue[string] { return v.lockCommand }
// MessageCommandStyle returns materialized "message-command-style" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetMessageCommandStyle] or [GlobalSessionScope.SetMessageCommandStyle].
// It is a style option.
mfunc (v SessionOptionValues) MessageCommandStyle() OptionValue[string] { return v.messageCommandStyle }
// MessageFormat returns materialized "message-format" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Session.SetMessageFormat] or [GlobalSessionScope.SetMessageFormat].
mfunc (v SessionOptionValues) MessageFormat() OptionValue[string] { return v.messageFormat }
// MessageLine returns materialized "message-line" as [OptionValue] with value type OptionValue[MessageLine] from session option values; it does not query tmux.
// Available as CHOICE since tmux 3.4 (choices: "0", "1", "2", "3", "4"); set it with [Session.SetMessageLine] or [GlobalSessionScope.SetMessageLine].
mfunc (v SessionOptionValues) MessageLine() OptionValue[MessageLine] { return v.messageLine }
// MessageStyle returns materialized "message-style" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetMessageStyle] or [GlobalSessionScope.SetMessageStyle].
// It is a style option.
mfunc (v SessionOptionValues) MessageStyle() OptionValue[string] { return v.messageStyle }
// Mouse returns materialized "mouse" as [OptionValue] with value type OptionValue[bool] from session option values; it does not query tmux.
// Available as FLAG; set it with [Session.SetMouse] or [GlobalSessionScope.SetMouse].
mfunc (v SessionOptionValues) Mouse() OptionValue[bool] { return v.mouse }
// Prefix returns materialized "prefix" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as KEY; set it with [Session.SetPrefix] or [GlobalSessionScope.SetPrefix].
mfunc (v SessionOptionValues) Prefix() OptionValue[string] { return v.prefix }
// Prefix2 returns materialized "prefix2" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as KEY; set it with [Session.SetPrefix2] or [GlobalSessionScope.SetPrefix2].
mfunc (v SessionOptionValues) Prefix2() OptionValue[string] { return v.prefix2 }
// PromptCommandCursorStyle returns materialized "prompt-command-cursor-style" as [OptionValue] with value type OptionValue[PromptCommandCursorStyle] from session option values; it does not query tmux.
// Available as CHOICE since tmux 3.7 (choices: "default", "blinking-block", "block", "blinking-underline", "underline", "blinking-bar", "bar"); set it with [Session.SetPromptCommandCursorStyle] or [GlobalSessionScope.SetPromptCommandCursorStyle].
mfunc (v SessionOptionValues) PromptCommandCursorStyle() OptionValue[PromptCommandCursorStyle] {
return v.promptCommandCursorStyle
}
// PromptCursorColour returns materialized "prompt-cursor-colour" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as COLOUR since tmux 3.6; set it with [Session.SetPromptCursorColour] or [GlobalSessionScope.SetPromptCursorColour].
mfunc (v SessionOptionValues) PromptCursorColour() OptionValue[string] { return v.promptCursorColour }
// PromptCursorStyle returns materialized "prompt-cursor-style" as [OptionValue] with value type OptionValue[PromptCursorStyle] from session option values; it does not query tmux.
// Available as CHOICE since tmux 3.6 (choices: "default", "blinking-block", "block", "blinking-underline", "underline", "blinking-bar", "bar"); set it with [Session.SetPromptCursorStyle] or [GlobalSessionScope.SetPromptCursorStyle].
mfunc (v SessionOptionValues) PromptCursorStyle() OptionValue[PromptCursorStyle] {
return v.promptCursorStyle
}
// RenumberWindows returns materialized "renumber-windows" as [OptionValue] with value type OptionValue[bool] from session option values; it does not query tmux.
// Available as FLAG; set it with [Session.SetRenumberWindows] or [GlobalSessionScope.SetRenumberWindows].
mfunc (v SessionOptionValues) RenumberWindows() OptionValue[bool] { return v.renumberWindows }
// RepeatTime returns materialized "repeat-time" as [OptionValue] with value type OptionValue[time.Duration] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetRepeatTime] or [GlobalSessionScope.SetRepeatTime].
mfunc (v SessionOptionValues) RepeatTime() OptionValue[time.Duration] { return v.repeatTime }
// SetTitles returns materialized "set-titles" as [OptionValue] with value type OptionValue[bool] from session option values; it does not query tmux.
// Available as FLAG; set it with [Session.SetTitles] or [GlobalSessionScope.SetTitles].
mfunc (v SessionOptionValues) SetTitles() OptionValue[bool] { return v.setTitles }
// SetTitlesString returns materialized "set-titles-string" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetTitlesString] or [GlobalSessionScope.SetTitlesString].
mfunc (v SessionOptionValues) SetTitlesString() OptionValue[string] { return v.setTitlesString }
// SilenceAction returns materialized "silence-action" as [OptionValue] with value type OptionValue[SilenceAction] from session option values; it does not query tmux.
// Available as CHOICE (choices: "none", "any", "current", "other"); set it with [Session.SetSilenceAction] or [GlobalSessionScope.SetSilenceAction].
mfunc (v SessionOptionValues) SilenceAction() OptionValue[SilenceAction] { return v.silenceAction }
// Status returns materialized "status" as [OptionValue] with value type OptionValue[Status] from session option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "2", "3", "4", "5"); set it with [Session.SetStatus] or [GlobalSessionScope.SetStatus].
mfunc (v SessionOptionValues) Status() OptionValue[Status] { return v.status }
// StatusBG returns materialized "status-bg" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as COLOUR; set it with [Session.SetStatusBG] or [GlobalSessionScope.SetStatusBG].
mfunc (v SessionOptionValues) StatusBG() OptionValue[string] { return v.statusBG }
// StatusFG returns materialized "status-fg" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as COLOUR; set it with [Session.SetStatusFG] or [GlobalSessionScope.SetStatusFG].
mfunc (v SessionOptionValues) StatusFG() OptionValue[string] { return v.statusFG }
// StatusFormat returns materialized "status-format" as [OptionValue] with value type OptionValue[SparseArray[string]] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetStatusFormat] or [GlobalSessionScope.SetStatusFormat].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionOptionValues) StatusFormat() OptionValue[SparseArray[string]] { return v.statusFormat }
// StatusInterval returns materialized "status-interval" as [OptionValue] with value type OptionValue[time.Duration] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetStatusInterval] or [GlobalSessionScope.SetStatusInterval].
mfunc (v SessionOptionValues) StatusInterval() OptionValue[time.Duration] { return v.statusInterval }
// StatusJustify returns materialized "status-justify" as [OptionValue] with value type OptionValue[StatusJustify] from session option values; it does not query tmux.
// Available as CHOICE (choices: "left", "centre", "right", "absolute-centre"); set it with [Session.SetStatusJustify] or [GlobalSessionScope.SetStatusJustify].
mfunc (v SessionOptionValues) StatusJustify() OptionValue[StatusJustify] { return v.statusJustify }
// StatusKeys returns materialized "status-keys" as [OptionValue] with value type OptionValue[StatusKeys] from session option values; it does not query tmux.
// Available as CHOICE (choices: "emacs", "vi"); set it with [Session.SetStatusKeys] or [GlobalSessionScope.SetStatusKeys].
mfunc (v SessionOptionValues) StatusKeys() OptionValue[StatusKeys] { return v.statusKeys }
// StatusLeft returns materialized "status-left" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetStatusLeft] or [GlobalSessionScope.SetStatusLeft].
mfunc (v SessionOptionValues) StatusLeft() OptionValue[string] { return v.statusLeft }
// StatusLeftLength returns materialized "status-left-length" as [OptionValue] with value type OptionValue[int64] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetStatusLeftLength] or [GlobalSessionScope.SetStatusLeftLength].
mfunc (v SessionOptionValues) StatusLeftLength() OptionValue[int64] { return v.statusLeftLength }
// StatusLeftStyle returns materialized "status-left-style" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetStatusLeftStyle] or [GlobalSessionScope.SetStatusLeftStyle].
// It is a style option.
mfunc (v SessionOptionValues) StatusLeftStyle() OptionValue[string] { return v.statusLeftStyle }
// StatusPosition returns materialized "status-position" as [OptionValue] with value type OptionValue[StatusPosition] from session option values; it does not query tmux.
// Available as CHOICE (choices: "top", "bottom"); set it with [Session.SetStatusPosition] or [GlobalSessionScope.SetStatusPosition].
mfunc (v SessionOptionValues) StatusPosition() OptionValue[StatusPosition] { return v.statusPosition }
// StatusRight returns materialized "status-right" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetStatusRight] or [GlobalSessionScope.SetStatusRight].
mfunc (v SessionOptionValues) StatusRight() OptionValue[string] { return v.statusRight }
// StatusRightLength returns materialized "status-right-length" as [OptionValue] with value type OptionValue[int64] from session option values; it does not query tmux.
// Available as NUMBER; set it with [Session.SetStatusRightLength] or [GlobalSessionScope.SetStatusRightLength].
mfunc (v SessionOptionValues) StatusRightLength() OptionValue[int64] { return v.statusRightLength }
// StatusRightStyle returns materialized "status-right-style" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetStatusRightStyle] or [GlobalSessionScope.SetStatusRightStyle].
// It is a style option.
mfunc (v SessionOptionValues) StatusRightStyle() OptionValue[string] { return v.statusRightStyle }
// StatusStyle returns materialized "status-style" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetStatusStyle] or [GlobalSessionScope.SetStatusStyle].
// It is a style option.
mfunc (v SessionOptionValues) StatusStyle() OptionValue[string] { return v.statusStyle }
// UpdateEnvironment returns materialized "update-environment" as [OptionValue] with value type OptionValue[SparseArray[string]] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetUpdateEnvironment] or [GlobalSessionScope.SetUpdateEnvironment].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionOptionValues) UpdateEnvironment() OptionValue[SparseArray[string]] {
return v.updateEnvironment
}
// VisualActivity returns materialized "visual-activity" as [OptionValue] with value type OptionValue[VisualActivity] from session option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "both"); set it with [Session.SetVisualActivity] or [GlobalSessionScope.SetVisualActivity].
mfunc (v SessionOptionValues) VisualActivity() OptionValue[VisualActivity] { return v.visualActivity }
// VisualBell returns materialized "visual-bell" as [OptionValue] with value type OptionValue[VisualBell] from session option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "both"); set it with [Session.SetVisualBell] or [GlobalSessionScope.SetVisualBell].
mfunc (v SessionOptionValues) VisualBell() OptionValue[VisualBell] { return v.visualBell }
// VisualSilence returns materialized "visual-silence" as [OptionValue] with value type OptionValue[VisualSilence] from session option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "both"); set it with [Session.SetVisualSilence] or [GlobalSessionScope.SetVisualSilence].
mfunc (v SessionOptionValues) VisualSilence() OptionValue[VisualSilence] { return v.visualSilence }
// WordSeparators returns materialized "word-separators" as [OptionValue] with value type OptionValue[string] from session option values; it does not query tmux.
// Available as STRING; set it with [Session.SetWordSeparators] or [GlobalSessionScope.SetWordSeparators].
mfunc (v SessionOptionValues) WordSeparators() OptionValue[string] { return v.wordSeparators }
func newSessionOptionValues(values []decodedOptionValue) SessionOptionValues {
var result SessionOptionValues
for _, value := range values {
switch value.name {
case "activity-action":
result.activityAction = optionValueFromDecoded(ActivityAction(value.stringValue), value.origin)
case "assume-paste-time":
result.assumePasteTime = optionValueFromDecoded(time.Duration(value.int64Value)*time.Millisecond, value.origin)
case "base-index":
result.baseIndex = optionValueFromDecoded(value.int64Value, value.origin)
case "bell-action":
result.bellAction = optionValueFromDecoded(BellAction(value.stringValue), value.origin)
case "default-command":
result.defaultCommand = optionValueFromDecoded(value.stringValue, value.origin)
case "default-shell":
result.defaultShell = optionValueFromDecoded(value.stringValue, value.origin)
case "default-size":
result.defaultSize = optionValueFromDecoded(value.stringValue, value.origin)
case "destroy-unattached":
result.destroyUnattached = optionValueFromDecoded(DestroyUnattached(value.stringValue), value.origin)
case "detach-on-destroy":
result.detachOnDestroy = optionValueFromDecoded(DetachOnDestroy(value.stringValue), value.origin)
case "display-panes-active-colour":
result.displayPanesActiveColour = optionValueFromDecoded(value.stringValue, value.origin)
case "display-panes-colour":
result.displayPanesColour = optionValueFromDecoded(value.stringValue, value.origin)
case "display-panes-time":
result.displayPanesTime = optionValueFromDecoded(time.Duration(value.int64Value)*time.Millisecond, value.origin)
case "display-time":
result.displayTime = optionValueFromDecoded(time.Duration(value.int64Value)*time.Millisecond, value.origin)
case "focus-follows-mouse":
result.focusFollowsMouse = optionValueFromDecoded(value.boolValue, value.origin)
case "history-limit":
result.historyLimit = optionValueFromDecoded(value.int64Value, value.origin)
case "initial-repeat-time":
result.initialRepeatTime = optionValueFromDecoded(time.Duration(value.int64Value)*time.Millisecond, value.origin)
case "key-table":
result.keyTable = optionValueFromDecoded(value.stringValue, value.origin)
case "lock-after-time":
result.lockAfterTime = optionValueFromDecoded(time.Duration(value.int64Value)*time.Second, value.origin)
case "lock-command":
result.lockCommand = optionValueFromDecoded(value.stringValue, value.origin)
case "message-command-style":
result.messageCommandStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "message-format":
result.messageFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "message-line":
result.messageLine = optionValueFromDecoded(MessageLine(value.stringValue), value.origin)
case "message-style":
result.messageStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "mouse":
result.mouse = optionValueFromDecoded(value.boolValue, value.origin)
case "prefix":
result.prefix = optionValueFromDecoded(value.stringValue, value.origin)
case "prefix2":
result.prefix2 = optionValueFromDecoded(value.stringValue, value.origin)
case "prompt-command-cursor-style":
result.promptCommandCursorStyle = optionValueFromDecoded(PromptCommandCursorStyle(value.stringValue), value.origin)
case "prompt-cursor-colour":
result.promptCursorColour = optionValueFromDecoded(value.stringValue, value.origin)
case "prompt-cursor-style":
result.promptCursorStyle = optionValueFromDecoded(PromptCursorStyle(value.stringValue), value.origin)
case "renumber-windows":
result.renumberWindows = optionValueFromDecoded(value.boolValue, value.origin)
case "repeat-time":
result.repeatTime = optionValueFromDecoded(time.Duration(value.int64Value)*time.Millisecond, value.origin)
case "set-titles":
result.setTitles = optionValueFromDecoded(value.boolValue, value.origin)
case "set-titles-string":
result.setTitlesString = optionValueFromDecoded(value.stringValue, value.origin)
case "silence-action":
result.silenceAction = optionValueFromDecoded(SilenceAction(value.stringValue), value.origin)
case "status":
result.status = optionValueFromDecoded(Status(value.stringValue), value.origin)
case "status-bg":
result.statusBG = optionValueFromDecoded(value.stringValue, value.origin)
case "status-fg":
result.statusFG = optionValueFromDecoded(value.stringValue, value.origin)
case "status-format":
result.statusFormat = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "status-interval":
result.statusInterval = optionValueFromDecoded(time.Duration(value.int64Value)*time.Second, value.origin)
case "status-justify":
result.statusJustify = optionValueFromDecoded(StatusJustify(value.stringValue), value.origin)
case "status-keys":
result.statusKeys = optionValueFromDecoded(StatusKeys(value.stringValue), value.origin)
case "status-left":
result.statusLeft = optionValueFromDecoded(value.stringValue, value.origin)
case "status-left-length":
result.statusLeftLength = optionValueFromDecoded(value.int64Value, value.origin)
case "status-left-style":
result.statusLeftStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "status-position":
result.statusPosition = optionValueFromDecoded(StatusPosition(value.stringValue), value.origin)
case "status-right":
result.statusRight = optionValueFromDecoded(value.stringValue, value.origin)
case "status-right-length":
result.statusRightLength = optionValueFromDecoded(value.int64Value, value.origin)
case "status-right-style":
result.statusRightStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "status-style":
result.statusStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "update-environment":
result.updateEnvironment = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "visual-activity":
result.visualActivity = optionValueFromDecoded(VisualActivity(value.stringValue), value.origin)
case "visual-bell":
result.visualBell = optionValueFromDecoded(VisualBell(value.stringValue), value.origin)
case "visual-silence":
result.visualSilence = optionValueFromDecoded(VisualSilence(value.stringValue), value.origin)
case "word-separators":
result.wordSeparators = optionValueFromDecoded(value.stringValue, value.origin)
}
}
return result
}
// WindowOptionValues is an immutable materialized view of known window option values; its zero value is empty and it does not refresh.
// Obtain it with [Window.Options] or [GlobalWindowScope.Options]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [Window.RawOption] or [GlobalWindowScope.RawOption] for caller-named or undecoded values.
Stype WindowOptionValues struct {
aggressiveResize OptionValue[bool]
allowPassthrough OptionValue[AllowPassthrough]
allowRename OptionValue[bool]
allowSetTitle OptionValue[bool]
alternateScreen OptionValue[bool]
automaticRename OptionValue[bool]
automaticRenameFormat OptionValue[string]
clockModeColour OptionValue[string]
clockModeStyle OptionValue[ClockModeStyle]
copyModeCurrentLineNumberStyle OptionValue[string]
copyModeCurrentMatchStyle OptionValue[string]
copyModeLineNumberStyle OptionValue[string]
copyModeLineNumbers OptionValue[CopyModeLineNumbers]
copyModeMarkStyle OptionValue[string]
copyModeMatchStyle OptionValue[string]
copyModePositionFormat OptionValue[string]
copyModePositionStyle OptionValue[string]
copyModeSelectionStyle OptionValue[string]
cursorColour OptionValue[string]
cursorStyle OptionValue[CursorStyle]
fillCharacter OptionValue[string]
mainPaneHeight OptionValue[string]
mainPaneWidth OptionValue[string]
menuBorderLines OptionValue[MenuBorderLines]
menuBorderStyle OptionValue[string]
menuSelectedStyle OptionValue[string]
menuStyle OptionValue[string]
modeKeys OptionValue[ModeKeys]
modeStyle OptionValue[string]
monitorActivity OptionValue[bool]
monitorBell OptionValue[bool]
monitorSilence OptionValue[int64]
otherPaneHeight OptionValue[string]
otherPaneWidth OptionValue[string]
paneActiveBorderStyle OptionValue[string]
paneBaseIndex OptionValue[int64]
paneBorderFormat OptionValue[string]
paneBorderIndicators OptionValue[PaneBorderIndicators]
paneBorderLines OptionValue[PaneBorderLines]
paneBorderStatus OptionValue[PaneBorderStatus]
paneBorderStyle OptionValue[string]
paneColours OptionValue[SparseArray[string]]
paneScrollbars OptionValue[PaneScrollbars]
paneScrollbarsPosition OptionValue[PaneScrollbarsPosition]
paneScrollbarsStyle OptionValue[string]
paneStatusCurrentStyle OptionValue[string]
paneStatusStyle OptionValue[string]
popupBorderLines OptionValue[PopupBorderLines]
popupBorderStyle OptionValue[string]
popupStyle OptionValue[string]
remainOnExit OptionValue[RemainOnExit]
remainOnExitFormat OptionValue[string]
scrollOnClear OptionValue[bool]
sessionStatusCurrentStyle OptionValue[string]
sessionStatusStyle OptionValue[string]
synchronizePanes OptionValue[bool]
tiledLayoutMaxColumns OptionValue[int64]
treeModePreviewFormat OptionValue[string]
treeModePreviewStyle OptionValue[string]
windowActiveStyle OptionValue[string]
windowPaneCurrentStatusFormat OptionValue[string]
windowPaneStatusFormat OptionValue[string]
windowSize OptionValue[WindowSize]
windowStatusActivityStyle OptionValue[string]
windowStatusBellStyle OptionValue[string]
windowStatusCurrentFormat OptionValue[string]
windowStatusCurrentStyle OptionValue[string]
windowStatusFormat OptionValue[string]
windowStatusLastStyle OptionValue[string]
windowStatusSeparator OptionValue[string]
windowStatusStyle OptionValue[string]
windowStyle OptionValue[string]
wrapSearch OptionValue[bool]
xTermKeys OptionValue[bool]
}
// AggressiveResize returns materialized "aggressive-resize" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetAggressiveResize] or [GlobalWindowScope.SetAggressiveResize].
mfunc (v WindowOptionValues) AggressiveResize() OptionValue[bool] { return v.aggressiveResize }
// AllowPassthrough returns materialized "allow-passthrough" as [OptionValue] with value type OptionValue[AllowPassthrough] from window option values; it does not query tmux.
// Available as FLAG; CHOICE since tmux 3.4 (choices: "off", "on", "all"); set it with [Window.SetAllowPassthrough] or [GlobalWindowScope.SetAllowPassthrough].
mfunc (v WindowOptionValues) AllowPassthrough() OptionValue[AllowPassthrough] {
return v.allowPassthrough
}
// AllowRename returns materialized "allow-rename" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetAllowRename] or [GlobalWindowScope.SetAllowRename].
mfunc (v WindowOptionValues) AllowRename() OptionValue[bool] { return v.allowRename }
// AllowSetTitle returns materialized "allow-set-title" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG since tmux 3.5; set it with [Window.SetAllowSetTitle] or [GlobalWindowScope.SetAllowSetTitle].
mfunc (v WindowOptionValues) AllowSetTitle() OptionValue[bool] { return v.allowSetTitle }
// AlternateScreen returns materialized "alternate-screen" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetAlternateScreen] or [GlobalWindowScope.SetAlternateScreen].
mfunc (v WindowOptionValues) AlternateScreen() OptionValue[bool] { return v.alternateScreen }
// AutomaticRename returns materialized "automatic-rename" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetAutomaticRename] or [GlobalWindowScope.SetAutomaticRename].
mfunc (v WindowOptionValues) AutomaticRename() OptionValue[bool] { return v.automaticRename }
// AutomaticRenameFormat returns materialized "automatic-rename-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetAutomaticRenameFormat] or [GlobalWindowScope.SetAutomaticRenameFormat].
mfunc (v WindowOptionValues) AutomaticRenameFormat() OptionValue[string] {
return v.automaticRenameFormat
}
// ClockModeColour returns materialized "clock-mode-colour" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as COLOUR; set it with [Window.SetClockModeColour] or [GlobalWindowScope.SetClockModeColour].
mfunc (v WindowOptionValues) ClockModeColour() OptionValue[string] { return v.clockModeColour }
// ClockModeStyle returns materialized "clock-mode-style" as [OptionValue] with value type OptionValue[ClockModeStyle] from window option values; it does not query tmux.
// Available as CHOICE (choices: "12", "24"); CHOICE since tmux 3.6 (choices: "12", "24", "12-with-seconds", "24-with-seconds"); set it with [Window.SetClockModeStyle] or [GlobalWindowScope.SetClockModeStyle].
mfunc (v WindowOptionValues) ClockModeStyle() OptionValue[ClockModeStyle] { return v.clockModeStyle }
// CopyModeCurrentLineNumberStyle returns materialized "copy-mode-current-line-number-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Window.SetCopyModeCurrentLineNumberStyle] or [GlobalWindowScope.SetCopyModeCurrentLineNumberStyle].
// It is a style option.
mfunc (v WindowOptionValues) CopyModeCurrentLineNumberStyle() OptionValue[string] {
return v.copyModeCurrentLineNumberStyle
}
// CopyModeCurrentMatchStyle returns materialized "copy-mode-current-match-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetCopyModeCurrentMatchStyle] or [GlobalWindowScope.SetCopyModeCurrentMatchStyle].
// It is a style option.
mfunc (v WindowOptionValues) CopyModeCurrentMatchStyle() OptionValue[string] {
return v.copyModeCurrentMatchStyle
}
// CopyModeLineNumberStyle returns materialized "copy-mode-line-number-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Window.SetCopyModeLineNumberStyle] or [GlobalWindowScope.SetCopyModeLineNumberStyle].
// It is a style option.
mfunc (v WindowOptionValues) CopyModeLineNumberStyle() OptionValue[string] {
return v.copyModeLineNumberStyle
}
// CopyModeLineNumbers returns materialized "copy-mode-line-numbers" as [OptionValue] with value type OptionValue[CopyModeLineNumbers] from window option values; it does not query tmux.
// Available as CHOICE since tmux 3.7 (choices: "off", "default", "absolute", "relative", "hybrid"); set it with [Window.SetCopyModeLineNumbers] or [GlobalWindowScope.SetCopyModeLineNumbers].
mfunc (v WindowOptionValues) CopyModeLineNumbers() OptionValue[CopyModeLineNumbers] {
return v.copyModeLineNumbers
}
// CopyModeMarkStyle returns materialized "copy-mode-mark-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetCopyModeMarkStyle] or [GlobalWindowScope.SetCopyModeMarkStyle].
// It is a style option.
mfunc (v WindowOptionValues) CopyModeMarkStyle() OptionValue[string] { return v.copyModeMarkStyle }
// CopyModeMatchStyle returns materialized "copy-mode-match-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetCopyModeMatchStyle] or [GlobalWindowScope.SetCopyModeMatchStyle].
// It is a style option.
mfunc (v WindowOptionValues) CopyModeMatchStyle() OptionValue[string] { return v.copyModeMatchStyle }
// CopyModePositionFormat returns materialized "copy-mode-position-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetCopyModePositionFormat] or [GlobalWindowScope.SetCopyModePositionFormat].
mfunc (v WindowOptionValues) CopyModePositionFormat() OptionValue[string] {
return v.copyModePositionFormat
}
// CopyModePositionStyle returns materialized "copy-mode-position-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetCopyModePositionStyle] or [GlobalWindowScope.SetCopyModePositionStyle].
// It is a style option.
mfunc (v WindowOptionValues) CopyModePositionStyle() OptionValue[string] {
return v.copyModePositionStyle
}
// CopyModeSelectionStyle returns materialized "copy-mode-selection-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetCopyModeSelectionStyle] or [GlobalWindowScope.SetCopyModeSelectionStyle].
// It is a style option.
mfunc (v WindowOptionValues) CopyModeSelectionStyle() OptionValue[string] {
return v.copyModeSelectionStyle
}
// CursorColour returns materialized "cursor-colour" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as COLOUR; set it with [Window.SetCursorColour] or [GlobalWindowScope.SetCursorColour].
mfunc (v WindowOptionValues) CursorColour() OptionValue[string] { return v.cursorColour }
// CursorStyle returns materialized "cursor-style" as [OptionValue] with value type OptionValue[CursorStyle] from window option values; it does not query tmux.
// Available as CHOICE (choices: "default", "blinking-block", "block", "blinking-underline", "underline", "blinking-bar", "bar"); set it with [Window.SetCursorStyle] or [GlobalWindowScope.SetCursorStyle].
mfunc (v WindowOptionValues) CursorStyle() OptionValue[CursorStyle] { return v.cursorStyle }
// FillCharacter returns materialized "fill-character" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetFillCharacter] or [GlobalWindowScope.SetFillCharacter].
mfunc (v WindowOptionValues) FillCharacter() OptionValue[string] { return v.fillCharacter }
// MainPaneHeight returns materialized "main-pane-height" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetMainPaneHeight] or [GlobalWindowScope.SetMainPaneHeight].
mfunc (v WindowOptionValues) MainPaneHeight() OptionValue[string] { return v.mainPaneHeight }
// MainPaneWidth returns materialized "main-pane-width" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetMainPaneWidth] or [GlobalWindowScope.SetMainPaneWidth].
mfunc (v WindowOptionValues) MainPaneWidth() OptionValue[string] { return v.mainPaneWidth }
// MenuBorderLines returns materialized "menu-border-lines" as [OptionValue] with value type OptionValue[MenuBorderLines] from window option values; it does not query tmux.
// Available as CHOICE since tmux 3.4 (choices: "single", "double", "heavy", "simple", "rounded", "padded", "none"); set it with [Window.SetMenuBorderLines] or [GlobalWindowScope.SetMenuBorderLines].
mfunc (v WindowOptionValues) MenuBorderLines() OptionValue[MenuBorderLines] { return v.menuBorderLines }
// MenuBorderStyle returns materialized "menu-border-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.4; set it with [Window.SetMenuBorderStyle] or [GlobalWindowScope.SetMenuBorderStyle].
// It is a style option.
mfunc (v WindowOptionValues) MenuBorderStyle() OptionValue[string] { return v.menuBorderStyle }
// MenuSelectedStyle returns materialized "menu-selected-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.4; set it with [Window.SetMenuSelectedStyle] or [GlobalWindowScope.SetMenuSelectedStyle].
// It is a style option.
mfunc (v WindowOptionValues) MenuSelectedStyle() OptionValue[string] { return v.menuSelectedStyle }
// MenuStyle returns materialized "menu-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.4; set it with [Window.SetMenuStyle] or [GlobalWindowScope.SetMenuStyle].
// It is a style option.
mfunc (v WindowOptionValues) MenuStyle() OptionValue[string] { return v.menuStyle }
// ModeKeys returns materialized "mode-keys" as [OptionValue] with value type OptionValue[ModeKeys] from window option values; it does not query tmux.
// Available as CHOICE (choices: "emacs", "vi"); set it with [Window.SetModeKeys] or [GlobalWindowScope.SetModeKeys].
mfunc (v WindowOptionValues) ModeKeys() OptionValue[ModeKeys] { return v.modeKeys }
// ModeStyle returns materialized "mode-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetModeStyle] or [GlobalWindowScope.SetModeStyle].
// It is a style option.
mfunc (v WindowOptionValues) ModeStyle() OptionValue[string] { return v.modeStyle }
// MonitorActivity returns materialized "monitor-activity" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetMonitorActivity] or [GlobalWindowScope.SetMonitorActivity].
mfunc (v WindowOptionValues) MonitorActivity() OptionValue[bool] { return v.monitorActivity }
// MonitorBell returns materialized "monitor-bell" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetMonitorBell] or [GlobalWindowScope.SetMonitorBell].
mfunc (v WindowOptionValues) MonitorBell() OptionValue[bool] { return v.monitorBell }
// MonitorSilence returns materialized "monitor-silence" as [OptionValue] with value type OptionValue[int64] from window option values; it does not query tmux.
// Available as NUMBER; set it with [Window.SetMonitorSilence] or [GlobalWindowScope.SetMonitorSilence].
mfunc (v WindowOptionValues) MonitorSilence() OptionValue[int64] { return v.monitorSilence }
// OtherPaneHeight returns materialized "other-pane-height" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetOtherPaneHeight] or [GlobalWindowScope.SetOtherPaneHeight].
mfunc (v WindowOptionValues) OtherPaneHeight() OptionValue[string] { return v.otherPaneHeight }
// OtherPaneWidth returns materialized "other-pane-width" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetOtherPaneWidth] or [GlobalWindowScope.SetOtherPaneWidth].
mfunc (v WindowOptionValues) OtherPaneWidth() OptionValue[string] { return v.otherPaneWidth }
// PaneActiveBorderStyle returns materialized "pane-active-border-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; STRING since tmux 3.7; set it with [Window.SetPaneActiveBorderStyle] or [GlobalWindowScope.SetPaneActiveBorderStyle].
// It is a style option.
mfunc (v WindowOptionValues) PaneActiveBorderStyle() OptionValue[string] {
return v.paneActiveBorderStyle
}
// PaneBaseIndex returns materialized "pane-base-index" as [OptionValue] with value type OptionValue[int64] from window option values; it does not query tmux.
// Available as NUMBER; set it with [Window.SetPaneBaseIndex] or [GlobalWindowScope.SetPaneBaseIndex].
mfunc (v WindowOptionValues) PaneBaseIndex() OptionValue[int64] { return v.paneBaseIndex }
// PaneBorderFormat returns materialized "pane-border-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetPaneBorderFormat] or [GlobalWindowScope.SetPaneBorderFormat].
mfunc (v WindowOptionValues) PaneBorderFormat() OptionValue[string] { return v.paneBorderFormat }
// PaneBorderIndicators returns materialized "pane-border-indicators" as [OptionValue] with value type OptionValue[PaneBorderIndicators] from window option values; it does not query tmux.
// Available as CHOICE (choices: "off", "colour", "arrows", "both"); set it with [Window.SetPaneBorderIndicators] or [GlobalWindowScope.SetPaneBorderIndicators].
mfunc (v WindowOptionValues) PaneBorderIndicators() OptionValue[PaneBorderIndicators] {
return v.paneBorderIndicators
}
// PaneBorderLines returns materialized "pane-border-lines" as [OptionValue] with value type OptionValue[PaneBorderLines] from window option values; it does not query tmux.
// Available as CHOICE (choices: "single", "double", "heavy", "simple", "number"); CHOICE since tmux 3.6 (choices: "single", "double", "heavy", "simple", "number", "spaces"); set it with [Window.SetPaneBorderLines] or [GlobalWindowScope.SetPaneBorderLines].
mfunc (v WindowOptionValues) PaneBorderLines() OptionValue[PaneBorderLines] { return v.paneBorderLines }
// PaneBorderStatus returns materialized "pane-border-status" as [OptionValue] with value type OptionValue[PaneBorderStatus] from window option values; it does not query tmux.
// Available as CHOICE (choices: "off", "top", "bottom"); set it with [Window.SetPaneBorderStatus] or [GlobalWindowScope.SetPaneBorderStatus].
mfunc (v WindowOptionValues) PaneBorderStatus() OptionValue[PaneBorderStatus] {
return v.paneBorderStatus
}
// PaneBorderStyle returns materialized "pane-border-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; STRING since tmux 3.7; set it with [Window.SetPaneBorderStyle] or [GlobalWindowScope.SetPaneBorderStyle].
// It is a style option.
mfunc (v WindowOptionValues) PaneBorderStyle() OptionValue[string] { return v.paneBorderStyle }
// PaneColours returns materialized "pane-colours" as [OptionValue] with value type OptionValue[SparseArray[string]] from window option values; it does not query tmux.
// Available as COLOUR; set it with [Window.SetPaneColours] or [GlobalWindowScope.SetPaneColours].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowOptionValues) PaneColours() OptionValue[SparseArray[string]] { return v.paneColours }
// PaneScrollbars returns materialized "pane-scrollbars" as [OptionValue] with value type OptionValue[PaneScrollbars] from window option values; it does not query tmux.
// Available as CHOICE since tmux 3.6 (choices: "off", "modal", "on"); set it with [Window.SetPaneScrollbars] or [GlobalWindowScope.SetPaneScrollbars].
mfunc (v WindowOptionValues) PaneScrollbars() OptionValue[PaneScrollbars] { return v.paneScrollbars }
// PaneScrollbarsPosition returns materialized "pane-scrollbars-position" as [OptionValue] with value type OptionValue[PaneScrollbarsPosition] from window option values; it does not query tmux.
// Available as CHOICE since tmux 3.6 (choices: "right", "left"); set it with [Window.SetPaneScrollbarsPosition] or [GlobalWindowScope.SetPaneScrollbarsPosition].
mfunc (v WindowOptionValues) PaneScrollbarsPosition() OptionValue[PaneScrollbarsPosition] {
return v.paneScrollbarsPosition
}
// PaneScrollbarsStyle returns materialized "pane-scrollbars-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetPaneScrollbarsStyle] or [GlobalWindowScope.SetPaneScrollbarsStyle].
// It is a style option.
mfunc (v WindowOptionValues) PaneScrollbarsStyle() OptionValue[string] { return v.paneScrollbarsStyle }
// PaneStatusCurrentStyle returns materialized "pane-status-current-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetPaneStatusCurrentStyle] or [GlobalWindowScope.SetPaneStatusCurrentStyle].
// It is a style option.
mfunc (v WindowOptionValues) PaneStatusCurrentStyle() OptionValue[string] {
return v.paneStatusCurrentStyle
}
// PaneStatusStyle returns materialized "pane-status-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetPaneStatusStyle] or [GlobalWindowScope.SetPaneStatusStyle].
// It is a style option.
mfunc (v WindowOptionValues) PaneStatusStyle() OptionValue[string] { return v.paneStatusStyle }
// PopupBorderLines returns materialized "popup-border-lines" as [OptionValue] with value type OptionValue[PopupBorderLines] from window option values; it does not query tmux.
// Available as CHOICE (choices: "single", "double", "heavy", "simple", "rounded", "padded", "none"); set it with [Window.SetPopupBorderLines] or [GlobalWindowScope.SetPopupBorderLines].
mfunc (v WindowOptionValues) PopupBorderLines() OptionValue[PopupBorderLines] {
return v.popupBorderLines
}
// PopupBorderStyle returns materialized "popup-border-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetPopupBorderStyle] or [GlobalWindowScope.SetPopupBorderStyle].
// It is a style option.
mfunc (v WindowOptionValues) PopupBorderStyle() OptionValue[string] { return v.popupBorderStyle }
// PopupStyle returns materialized "popup-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetPopupStyle] or [GlobalWindowScope.SetPopupStyle].
// It is a style option.
mfunc (v WindowOptionValues) PopupStyle() OptionValue[string] { return v.popupStyle }
// RemainOnExit returns materialized "remain-on-exit" as [OptionValue] with value type OptionValue[RemainOnExit] from window option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "failed"); CHOICE since tmux 3.7 (choices: "off", "on", "failed", "key"); set it with [Window.SetRemainOnExit] or [GlobalWindowScope.SetRemainOnExit].
mfunc (v WindowOptionValues) RemainOnExit() OptionValue[RemainOnExit] { return v.remainOnExit }
// RemainOnExitFormat returns materialized "remain-on-exit-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetRemainOnExitFormat] or [GlobalWindowScope.SetRemainOnExitFormat].
mfunc (v WindowOptionValues) RemainOnExitFormat() OptionValue[string] { return v.remainOnExitFormat }
// ScrollOnClear returns materialized "scroll-on-clear" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetScrollOnClear] or [GlobalWindowScope.SetScrollOnClear].
mfunc (v WindowOptionValues) ScrollOnClear() OptionValue[bool] { return v.scrollOnClear }
// SessionStatusCurrentStyle returns materialized "session-status-current-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetSessionStatusCurrentStyle] or [GlobalWindowScope.SetSessionStatusCurrentStyle].
// It is a style option.
mfunc (v WindowOptionValues) SessionStatusCurrentStyle() OptionValue[string] {
return v.sessionStatusCurrentStyle
}
// SessionStatusStyle returns materialized "session-status-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Window.SetSessionStatusStyle] or [GlobalWindowScope.SetSessionStatusStyle].
// It is a style option.
mfunc (v WindowOptionValues) SessionStatusStyle() OptionValue[string] { return v.sessionStatusStyle }
// SynchronizePanes returns materialized "synchronize-panes" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetSynchronizePanes] or [GlobalWindowScope.SetSynchronizePanes].
mfunc (v WindowOptionValues) SynchronizePanes() OptionValue[bool] { return v.synchronizePanes }
// TiledLayoutMaxColumns returns materialized "tiled-layout-max-columns" as [OptionValue] with value type OptionValue[int64] from window option values; it does not query tmux.
// Available as NUMBER since tmux 3.6; set it with [Window.SetTiledLayoutMaxColumns] or [GlobalWindowScope.SetTiledLayoutMaxColumns].
mfunc (v WindowOptionValues) TiledLayoutMaxColumns() OptionValue[int64] {
return v.tiledLayoutMaxColumns
}
// TreeModePreviewFormat returns materialized "tree-mode-preview-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Window.SetTreeModePreviewFormat] or [GlobalWindowScope.SetTreeModePreviewFormat].
mfunc (v WindowOptionValues) TreeModePreviewFormat() OptionValue[string] {
return v.treeModePreviewFormat
}
// TreeModePreviewStyle returns materialized "tree-mode-preview-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Window.SetTreeModePreviewStyle] or [GlobalWindowScope.SetTreeModePreviewStyle].
// It is a style option.
mfunc (v WindowOptionValues) TreeModePreviewStyle() OptionValue[string] { return v.treeModePreviewStyle }
// WindowActiveStyle returns materialized "window-active-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowActiveStyle] or [GlobalWindowScope.SetWindowActiveStyle].
// It is a style option.
mfunc (v WindowOptionValues) WindowActiveStyle() OptionValue[string] { return v.windowActiveStyle }
// WindowPaneCurrentStatusFormat returns materialized "window-pane-current-status-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Window.SetWindowPaneCurrentStatusFormat] or [GlobalWindowScope.SetWindowPaneCurrentStatusFormat].
mfunc (v WindowOptionValues) WindowPaneCurrentStatusFormat() OptionValue[string] {
return v.windowPaneCurrentStatusFormat
}
// WindowPaneStatusFormat returns materialized "window-pane-status-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Window.SetWindowPaneStatusFormat] or [GlobalWindowScope.SetWindowPaneStatusFormat].
mfunc (v WindowOptionValues) WindowPaneStatusFormat() OptionValue[string] {
return v.windowPaneStatusFormat
}
// WindowSize returns materialized "window-size" as [OptionValue] with value type OptionValue[WindowSize] from window option values; it does not query tmux.
// Available as CHOICE (choices: "largest", "smallest", "manual", "latest"); set it with [Window.SetWindowSize] or [GlobalWindowScope.SetWindowSize].
mfunc (v WindowOptionValues) WindowSize() OptionValue[WindowSize] { return v.windowSize }
// WindowStatusActivityStyle returns materialized "window-status-activity-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusActivityStyle] or [GlobalWindowScope.SetWindowStatusActivityStyle].
// It is a style option.
mfunc (v WindowOptionValues) WindowStatusActivityStyle() OptionValue[string] {
return v.windowStatusActivityStyle
}
// WindowStatusBellStyle returns materialized "window-status-bell-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusBellStyle] or [GlobalWindowScope.SetWindowStatusBellStyle].
// It is a style option.
mfunc (v WindowOptionValues) WindowStatusBellStyle() OptionValue[string] {
return v.windowStatusBellStyle
}
// WindowStatusCurrentFormat returns materialized "window-status-current-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusCurrentFormat] or [GlobalWindowScope.SetWindowStatusCurrentFormat].
mfunc (v WindowOptionValues) WindowStatusCurrentFormat() OptionValue[string] {
return v.windowStatusCurrentFormat
}
// WindowStatusCurrentStyle returns materialized "window-status-current-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusCurrentStyle] or [GlobalWindowScope.SetWindowStatusCurrentStyle].
// It is a style option.
mfunc (v WindowOptionValues) WindowStatusCurrentStyle() OptionValue[string] {
return v.windowStatusCurrentStyle
}
// WindowStatusFormat returns materialized "window-status-format" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusFormat] or [GlobalWindowScope.SetWindowStatusFormat].
mfunc (v WindowOptionValues) WindowStatusFormat() OptionValue[string] { return v.windowStatusFormat }
// WindowStatusLastStyle returns materialized "window-status-last-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusLastStyle] or [GlobalWindowScope.SetWindowStatusLastStyle].
// It is a style option.
mfunc (v WindowOptionValues) WindowStatusLastStyle() OptionValue[string] {
return v.windowStatusLastStyle
}
// WindowStatusSeparator returns materialized "window-status-separator" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusSeparator] or [GlobalWindowScope.SetWindowStatusSeparator].
mfunc (v WindowOptionValues) WindowStatusSeparator() OptionValue[string] {
return v.windowStatusSeparator
}
// WindowStatusStyle returns materialized "window-status-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStatusStyle] or [GlobalWindowScope.SetWindowStatusStyle].
// It is a style option.
mfunc (v WindowOptionValues) WindowStatusStyle() OptionValue[string] { return v.windowStatusStyle }
// WindowStyle returns materialized "window-style" as [OptionValue] with value type OptionValue[string] from window option values; it does not query tmux.
// Available as STRING; set it with [Window.SetWindowStyle] or [GlobalWindowScope.SetWindowStyle].
// It is a style option.
mfunc (v WindowOptionValues) WindowStyle() OptionValue[string] { return v.windowStyle }
// WrapSearch returns materialized "wrap-search" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetWrapSearch] or [GlobalWindowScope.SetWrapSearch].
mfunc (v WindowOptionValues) WrapSearch() OptionValue[bool] { return v.wrapSearch }
// XTermKeys returns materialized "xterm-keys" as [OptionValue] with value type OptionValue[bool] from window option values; it does not query tmux.
// Available as FLAG; set it with [Window.SetXTermKeys] or [GlobalWindowScope.SetXTermKeys].
mfunc (v WindowOptionValues) XTermKeys() OptionValue[bool] { return v.xTermKeys }
func newWindowOptionValues(values []decodedOptionValue) WindowOptionValues {
var result WindowOptionValues
for _, value := range values {
switch value.name {
case "aggressive-resize":
result.aggressiveResize = optionValueFromDecoded(value.boolValue, value.origin)
case "allow-passthrough":
result.allowPassthrough = optionValueFromDecoded(AllowPassthrough(value.stringValue), value.origin)
case "allow-rename":
result.allowRename = optionValueFromDecoded(value.boolValue, value.origin)
case "allow-set-title":
result.allowSetTitle = optionValueFromDecoded(value.boolValue, value.origin)
case "alternate-screen":
result.alternateScreen = optionValueFromDecoded(value.boolValue, value.origin)
case "automatic-rename":
result.automaticRename = optionValueFromDecoded(value.boolValue, value.origin)
case "automatic-rename-format":
result.automaticRenameFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "clock-mode-colour":
result.clockModeColour = optionValueFromDecoded(value.stringValue, value.origin)
case "clock-mode-style":
result.clockModeStyle = optionValueFromDecoded(ClockModeStyle(value.stringValue), value.origin)
case "copy-mode-current-line-number-style":
result.copyModeCurrentLineNumberStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "copy-mode-current-match-style":
result.copyModeCurrentMatchStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "copy-mode-line-number-style":
result.copyModeLineNumberStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "copy-mode-line-numbers":
result.copyModeLineNumbers = optionValueFromDecoded(CopyModeLineNumbers(value.stringValue), value.origin)
case "copy-mode-mark-style":
result.copyModeMarkStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "copy-mode-match-style":
result.copyModeMatchStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "copy-mode-position-format":
result.copyModePositionFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "copy-mode-position-style":
result.copyModePositionStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "copy-mode-selection-style":
result.copyModeSelectionStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "cursor-colour":
result.cursorColour = optionValueFromDecoded(value.stringValue, value.origin)
case "cursor-style":
result.cursorStyle = optionValueFromDecoded(CursorStyle(value.stringValue), value.origin)
case "fill-character":
result.fillCharacter = optionValueFromDecoded(value.stringValue, value.origin)
case "main-pane-height":
result.mainPaneHeight = optionValueFromDecoded(value.stringValue, value.origin)
case "main-pane-width":
result.mainPaneWidth = optionValueFromDecoded(value.stringValue, value.origin)
case "menu-border-lines":
result.menuBorderLines = optionValueFromDecoded(MenuBorderLines(value.stringValue), value.origin)
case "menu-border-style":
result.menuBorderStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "menu-selected-style":
result.menuSelectedStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "menu-style":
result.menuStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "mode-keys":
result.modeKeys = optionValueFromDecoded(ModeKeys(value.stringValue), value.origin)
case "mode-style":
result.modeStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "monitor-activity":
result.monitorActivity = optionValueFromDecoded(value.boolValue, value.origin)
case "monitor-bell":
result.monitorBell = optionValueFromDecoded(value.boolValue, value.origin)
case "monitor-silence":
result.monitorSilence = optionValueFromDecoded(value.int64Value, value.origin)
case "other-pane-height":
result.otherPaneHeight = optionValueFromDecoded(value.stringValue, value.origin)
case "other-pane-width":
result.otherPaneWidth = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-active-border-style":
result.paneActiveBorderStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-base-index":
result.paneBaseIndex = optionValueFromDecoded(value.int64Value, value.origin)
case "pane-border-format":
result.paneBorderFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-border-indicators":
result.paneBorderIndicators = optionValueFromDecoded(PaneBorderIndicators(value.stringValue), value.origin)
case "pane-border-lines":
result.paneBorderLines = optionValueFromDecoded(PaneBorderLines(value.stringValue), value.origin)
case "pane-border-status":
result.paneBorderStatus = optionValueFromDecoded(PaneBorderStatus(value.stringValue), value.origin)
case "pane-border-style":
result.paneBorderStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-colours":
result.paneColours = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-scrollbars":
result.paneScrollbars = optionValueFromDecoded(PaneScrollbars(value.stringValue), value.origin)
case "pane-scrollbars-position":
result.paneScrollbarsPosition = optionValueFromDecoded(PaneScrollbarsPosition(value.stringValue), value.origin)
case "pane-scrollbars-style":
result.paneScrollbarsStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-status-current-style":
result.paneStatusCurrentStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-status-style":
result.paneStatusStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "popup-border-lines":
result.popupBorderLines = optionValueFromDecoded(PopupBorderLines(value.stringValue), value.origin)
case "popup-border-style":
result.popupBorderStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "popup-style":
result.popupStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "remain-on-exit":
result.remainOnExit = optionValueFromDecoded(RemainOnExit(value.stringValue), value.origin)
case "remain-on-exit-format":
result.remainOnExitFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "scroll-on-clear":
result.scrollOnClear = optionValueFromDecoded(value.boolValue, value.origin)
case "session-status-current-style":
result.sessionStatusCurrentStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "session-status-style":
result.sessionStatusStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "synchronize-panes":
result.synchronizePanes = optionValueFromDecoded(value.boolValue, value.origin)
case "tiled-layout-max-columns":
result.tiledLayoutMaxColumns = optionValueFromDecoded(value.int64Value, value.origin)
case "tree-mode-preview-format":
result.treeModePreviewFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "tree-mode-preview-style":
result.treeModePreviewStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-active-style":
result.windowActiveStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-pane-current-status-format":
result.windowPaneCurrentStatusFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "window-pane-status-format":
result.windowPaneStatusFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "window-size":
result.windowSize = optionValueFromDecoded(WindowSize(value.stringValue), value.origin)
case "window-status-activity-style":
result.windowStatusActivityStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-status-bell-style":
result.windowStatusBellStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-status-current-format":
result.windowStatusCurrentFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "window-status-current-style":
result.windowStatusCurrentStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-status-format":
result.windowStatusFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "window-status-last-style":
result.windowStatusLastStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-status-separator":
result.windowStatusSeparator = optionValueFromDecoded(value.stringValue, value.origin)
case "window-status-style":
result.windowStatusStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-style":
result.windowStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "wrap-search":
result.wrapSearch = optionValueFromDecoded(value.boolValue, value.origin)
case "xterm-keys":
result.xTermKeys = optionValueFromDecoded(value.boolValue, value.origin)
}
}
return result
}
// PaneOptionValues is an immutable materialized view of known pane option values; its zero value is empty and it does not refresh.
// Obtain it with [Pane.Options]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [Pane.RawOption] for caller-named or undecoded values.
Stype PaneOptionValues struct {
allowPassthrough OptionValue[AllowPassthrough]
allowRename OptionValue[bool]
allowSetTitle OptionValue[bool]
alternateScreen OptionValue[bool]
copyModePositionFormat OptionValue[string]
cursorColour OptionValue[string]
cursorStyle OptionValue[CursorStyle]
paneActiveBorderStyle OptionValue[string]
paneBorderFormat OptionValue[string]
paneBorderStyle OptionValue[string]
paneColours OptionValue[SparseArray[string]]
paneScrollbarsStyle OptionValue[string]
remainOnExit OptionValue[RemainOnExit]
remainOnExitFormat OptionValue[string]
scrollOnClear OptionValue[bool]
synchronizePanes OptionValue[bool]
treeModePreviewFormat OptionValue[string]
windowActiveStyle OptionValue[string]
windowStyle OptionValue[string]
}
// AllowPassthrough returns materialized "allow-passthrough" as [OptionValue] with value type OptionValue[AllowPassthrough] from pane option values; it does not query tmux.
// Available as FLAG; CHOICE since tmux 3.4 (choices: "off", "on", "all"); set it with [Pane.SetAllowPassthrough].
mfunc (v PaneOptionValues) AllowPassthrough() OptionValue[AllowPassthrough] { return v.allowPassthrough }
// AllowRename returns materialized "allow-rename" as [OptionValue] with value type OptionValue[bool] from pane option values; it does not query tmux.
// Available as FLAG; set it with [Pane.SetAllowRename].
mfunc (v PaneOptionValues) AllowRename() OptionValue[bool] { return v.allowRename }
// AllowSetTitle returns materialized "allow-set-title" as [OptionValue] with value type OptionValue[bool] from pane option values; it does not query tmux.
// Available as FLAG since tmux 3.5; set it with [Pane.SetAllowSetTitle].
mfunc (v PaneOptionValues) AllowSetTitle() OptionValue[bool] { return v.allowSetTitle }
// AlternateScreen returns materialized "alternate-screen" as [OptionValue] with value type OptionValue[bool] from pane option values; it does not query tmux.
// Available as FLAG; set it with [Pane.SetAlternateScreen].
mfunc (v PaneOptionValues) AlternateScreen() OptionValue[bool] { return v.alternateScreen }
// CopyModePositionFormat returns materialized "copy-mode-position-format" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Pane.SetCopyModePositionFormat].
mfunc (v PaneOptionValues) CopyModePositionFormat() OptionValue[string] {
return v.copyModePositionFormat
}
// CursorColour returns materialized "cursor-colour" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as COLOUR; set it with [Pane.SetCursorColour].
mfunc (v PaneOptionValues) CursorColour() OptionValue[string] { return v.cursorColour }
// CursorStyle returns materialized "cursor-style" as [OptionValue] with value type OptionValue[CursorStyle] from pane option values; it does not query tmux.
// Available as CHOICE (choices: "default", "blinking-block", "block", "blinking-underline", "underline", "blinking-bar", "bar"); set it with [Pane.SetCursorStyle].
mfunc (v PaneOptionValues) CursorStyle() OptionValue[CursorStyle] { return v.cursorStyle }
// PaneActiveBorderStyle returns materialized "pane-active-border-style" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Pane.SetPaneActiveBorderStyle].
// It is a style option.
mfunc (v PaneOptionValues) PaneActiveBorderStyle() OptionValue[string] { return v.paneActiveBorderStyle }
// PaneBorderFormat returns materialized "pane-border-format" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING; set it with [Pane.SetPaneBorderFormat].
mfunc (v PaneOptionValues) PaneBorderFormat() OptionValue[string] { return v.paneBorderFormat }
// PaneBorderStyle returns materialized "pane-border-style" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Pane.SetPaneBorderStyle].
// It is a style option.
mfunc (v PaneOptionValues) PaneBorderStyle() OptionValue[string] { return v.paneBorderStyle }
// PaneColours returns materialized "pane-colours" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane option values; it does not query tmux.
// Available as COLOUR; set it with [Pane.SetPaneColours].
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneOptionValues) PaneColours() OptionValue[SparseArray[string]] { return v.paneColours }
// PaneScrollbarsStyle returns materialized "pane-scrollbars-style" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING since tmux 3.6; set it with [Pane.SetPaneScrollbarsStyle].
// It is a style option.
mfunc (v PaneOptionValues) PaneScrollbarsStyle() OptionValue[string] { return v.paneScrollbarsStyle }
// RemainOnExit returns materialized "remain-on-exit" as [OptionValue] with value type OptionValue[RemainOnExit] from pane option values; it does not query tmux.
// Available as CHOICE (choices: "off", "on", "failed"); CHOICE since tmux 3.7 (choices: "off", "on", "failed", "key"); set it with [Pane.SetRemainOnExit].
mfunc (v PaneOptionValues) RemainOnExit() OptionValue[RemainOnExit] { return v.remainOnExit }
// RemainOnExitFormat returns materialized "remain-on-exit-format" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING; set it with [Pane.SetRemainOnExitFormat].
mfunc (v PaneOptionValues) RemainOnExitFormat() OptionValue[string] { return v.remainOnExitFormat }
// ScrollOnClear returns materialized "scroll-on-clear" as [OptionValue] with value type OptionValue[bool] from pane option values; it does not query tmux.
// Available as FLAG; set it with [Pane.SetScrollOnClear].
mfunc (v PaneOptionValues) ScrollOnClear() OptionValue[bool] { return v.scrollOnClear }
// SynchronizePanes returns materialized "synchronize-panes" as [OptionValue] with value type OptionValue[bool] from pane option values; it does not query tmux.
// Available as FLAG; set it with [Pane.SetSynchronizePanes].
mfunc (v PaneOptionValues) SynchronizePanes() OptionValue[bool] { return v.synchronizePanes }
// TreeModePreviewFormat returns materialized "tree-mode-preview-format" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING since tmux 3.7; set it with [Pane.SetTreeModePreviewFormat].
mfunc (v PaneOptionValues) TreeModePreviewFormat() OptionValue[string] { return v.treeModePreviewFormat }
// WindowActiveStyle returns materialized "window-active-style" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING; set it with [Pane.SetWindowActiveStyle].
// It is a style option.
mfunc (v PaneOptionValues) WindowActiveStyle() OptionValue[string] { return v.windowActiveStyle }
// WindowStyle returns materialized "window-style" as [OptionValue] with value type OptionValue[string] from pane option values; it does not query tmux.
// Available as STRING; set it with [Pane.SetWindowStyle].
// It is a style option.
mfunc (v PaneOptionValues) WindowStyle() OptionValue[string] { return v.windowStyle }
func newPaneOptionValues(values []decodedOptionValue) PaneOptionValues {
var result PaneOptionValues
for _, value := range values {
switch value.name {
case "allow-passthrough":
result.allowPassthrough = optionValueFromDecoded(AllowPassthrough(value.stringValue), value.origin)
case "allow-rename":
result.allowRename = optionValueFromDecoded(value.boolValue, value.origin)
case "allow-set-title":
result.allowSetTitle = optionValueFromDecoded(value.boolValue, value.origin)
case "alternate-screen":
result.alternateScreen = optionValueFromDecoded(value.boolValue, value.origin)
case "copy-mode-position-format":
result.copyModePositionFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "cursor-colour":
result.cursorColour = optionValueFromDecoded(value.stringValue, value.origin)
case "cursor-style":
result.cursorStyle = optionValueFromDecoded(CursorStyle(value.stringValue), value.origin)
case "pane-active-border-style":
result.paneActiveBorderStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-border-format":
result.paneBorderFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-border-style":
result.paneBorderStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "pane-colours":
result.paneColours = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-scrollbars-style":
result.paneScrollbarsStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "remain-on-exit":
result.remainOnExit = optionValueFromDecoded(RemainOnExit(value.stringValue), value.origin)
case "remain-on-exit-format":
result.remainOnExitFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "scroll-on-clear":
result.scrollOnClear = optionValueFromDecoded(value.boolValue, value.origin)
case "synchronize-panes":
result.synchronizePanes = optionValueFromDecoded(value.boolValue, value.origin)
case "tree-mode-preview-format":
result.treeModePreviewFormat = optionValueFromDecoded(value.stringValue, value.origin)
case "window-active-style":
result.windowActiveStyle = optionValueFromDecoded(value.stringValue, value.origin)
case "window-style":
result.windowStyle = optionValueFromDecoded(value.stringValue, value.origin)
}
}
return result
}
// ServerHookValues is an immutable materialized view of known global session-scope hook values; its zero value is empty and it does not refresh.
// Obtain it with [GlobalSessionScope.Hooks]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [GlobalSessionScope.RawHook] for caller-named or undecoded values.
Stype ServerHookValues struct {
afterBindKey OptionValue[SparseArray[string]]
afterCapturePane OptionValue[SparseArray[string]]
afterCopyMode OptionValue[SparseArray[string]]
afterDisplayMessage OptionValue[SparseArray[string]]
afterDisplayPanes OptionValue[SparseArray[string]]
afterKillPane OptionValue[SparseArray[string]]
afterListBuffers OptionValue[SparseArray[string]]
afterListClients OptionValue[SparseArray[string]]
afterListKeys OptionValue[SparseArray[string]]
afterListPanes OptionValue[SparseArray[string]]
afterListSessions OptionValue[SparseArray[string]]
afterListWindows OptionValue[SparseArray[string]]
afterLoadBuffer OptionValue[SparseArray[string]]
afterLockServer OptionValue[SparseArray[string]]
afterNewSession OptionValue[SparseArray[string]]
afterNewWindow OptionValue[SparseArray[string]]
afterPasteBuffer OptionValue[SparseArray[string]]
afterPipePane OptionValue[SparseArray[string]]
afterQueue OptionValue[SparseArray[string]]
afterRefreshClient OptionValue[SparseArray[string]]
afterRenameSession OptionValue[SparseArray[string]]
afterRenameWindow OptionValue[SparseArray[string]]
afterResizePane OptionValue[SparseArray[string]]
afterResizeWindow OptionValue[SparseArray[string]]
afterSaveBuffer OptionValue[SparseArray[string]]
afterSelectLayout OptionValue[SparseArray[string]]
afterSelectPane OptionValue[SparseArray[string]]
afterSelectWindow OptionValue[SparseArray[string]]
afterSendKeys OptionValue[SparseArray[string]]
afterSetBuffer OptionValue[SparseArray[string]]
afterSetEnvironment OptionValue[SparseArray[string]]
afterSetHook OptionValue[SparseArray[string]]
afterSetOption OptionValue[SparseArray[string]]
afterShowEnvironment OptionValue[SparseArray[string]]
afterShowMessages OptionValue[SparseArray[string]]
afterShowOptions OptionValue[SparseArray[string]]
afterSplitWindow OptionValue[SparseArray[string]]
afterUnbindKey OptionValue[SparseArray[string]]
alertActivity OptionValue[SparseArray[string]]
alertBell OptionValue[SparseArray[string]]
alertSilence OptionValue[SparseArray[string]]
clientActive OptionValue[SparseArray[string]]
clientAttached OptionValue[SparseArray[string]]
clientDarkTheme OptionValue[SparseArray[string]]
clientDetached OptionValue[SparseArray[string]]
clientFocusIn OptionValue[SparseArray[string]]
clientFocusOut OptionValue[SparseArray[string]]
clientLightTheme OptionValue[SparseArray[string]]
clientResized OptionValue[SparseArray[string]]
clientSessionChanged OptionValue[SparseArray[string]]
commandError OptionValue[SparseArray[string]]
sessionClosed OptionValue[SparseArray[string]]
sessionCreated OptionValue[SparseArray[string]]
sessionRenamed OptionValue[SparseArray[string]]
sessionWindowChanged OptionValue[SparseArray[string]]
windowLinked OptionValue[SparseArray[string]]
windowUnlinked OptionValue[SparseArray[string]]
}
// AfterBindKey returns materialized "after-bind-key" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterBindKey() OptionValue[SparseArray[string]] { return v.afterBindKey }
// AfterCapturePane returns materialized "after-capture-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterCapturePane() OptionValue[SparseArray[string]] {
return v.afterCapturePane
}
// AfterCopyMode returns materialized "after-copy-mode" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterCopyMode() OptionValue[SparseArray[string]] { return v.afterCopyMode }
// AfterDisplayMessage returns materialized "after-display-message" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterDisplayMessage() OptionValue[SparseArray[string]] {
return v.afterDisplayMessage
}
// AfterDisplayPanes returns materialized "after-display-panes" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterDisplayPanes() OptionValue[SparseArray[string]] {
return v.afterDisplayPanes
}
// AfterKillPane returns materialized "after-kill-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterKillPane() OptionValue[SparseArray[string]] { return v.afterKillPane }
// AfterListBuffers returns materialized "after-list-buffers" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterListBuffers() OptionValue[SparseArray[string]] {
return v.afterListBuffers
}
// AfterListClients returns materialized "after-list-clients" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterListClients() OptionValue[SparseArray[string]] {
return v.afterListClients
}
// AfterListKeys returns materialized "after-list-keys" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterListKeys() OptionValue[SparseArray[string]] { return v.afterListKeys }
// AfterListPanes returns materialized "after-list-panes" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterListPanes() OptionValue[SparseArray[string]] { return v.afterListPanes }
// AfterListSessions returns materialized "after-list-sessions" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterListSessions() OptionValue[SparseArray[string]] {
return v.afterListSessions
}
// AfterListWindows returns materialized "after-list-windows" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterListWindows() OptionValue[SparseArray[string]] {
return v.afterListWindows
}
// AfterLoadBuffer returns materialized "after-load-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterLoadBuffer() OptionValue[SparseArray[string]] {
return v.afterLoadBuffer
}
// AfterLockServer returns materialized "after-lock-server" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterLockServer() OptionValue[SparseArray[string]] {
return v.afterLockServer
}
// AfterNewSession returns materialized "after-new-session" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterNewSession() OptionValue[SparseArray[string]] {
return v.afterNewSession
}
// AfterNewWindow returns materialized "after-new-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterNewWindow() OptionValue[SparseArray[string]] { return v.afterNewWindow }
// AfterPasteBuffer returns materialized "after-paste-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterPasteBuffer() OptionValue[SparseArray[string]] {
return v.afterPasteBuffer
}
// AfterPipePane returns materialized "after-pipe-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterPipePane() OptionValue[SparseArray[string]] { return v.afterPipePane }
// AfterQueue returns materialized "after-queue" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterQueue() OptionValue[SparseArray[string]] { return v.afterQueue }
// AfterRefreshClient returns materialized "after-refresh-client" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterRefreshClient() OptionValue[SparseArray[string]] {
return v.afterRefreshClient
}
// AfterRenameSession returns materialized "after-rename-session" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterRenameSession() OptionValue[SparseArray[string]] {
return v.afterRenameSession
}
// AfterRenameWindow returns materialized "after-rename-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterRenameWindow() OptionValue[SparseArray[string]] {
return v.afterRenameWindow
}
// AfterResizePane returns materialized "after-resize-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterResizePane() OptionValue[SparseArray[string]] {
return v.afterResizePane
}
// AfterResizeWindow returns materialized "after-resize-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterResizeWindow() OptionValue[SparseArray[string]] {
return v.afterResizeWindow
}
// AfterSaveBuffer returns materialized "after-save-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSaveBuffer() OptionValue[SparseArray[string]] {
return v.afterSaveBuffer
}
// AfterSelectLayout returns materialized "after-select-layout" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSelectLayout() OptionValue[SparseArray[string]] {
return v.afterSelectLayout
}
// AfterSelectPane returns materialized "after-select-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSelectPane() OptionValue[SparseArray[string]] {
return v.afterSelectPane
}
// AfterSelectWindow returns materialized "after-select-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSelectWindow() OptionValue[SparseArray[string]] {
return v.afterSelectWindow
}
// AfterSendKeys returns materialized "after-send-keys" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSendKeys() OptionValue[SparseArray[string]] { return v.afterSendKeys }
// AfterSetBuffer returns materialized "after-set-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSetBuffer() OptionValue[SparseArray[string]] { return v.afterSetBuffer }
// AfterSetEnvironment returns materialized "after-set-environment" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSetEnvironment() OptionValue[SparseArray[string]] {
return v.afterSetEnvironment
}
// AfterSetHook returns materialized "after-set-hook" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSetHook() OptionValue[SparseArray[string]] { return v.afterSetHook }
// AfterSetOption returns materialized "after-set-option" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSetOption() OptionValue[SparseArray[string]] { return v.afterSetOption }
// AfterShowEnvironment returns materialized "after-show-environment" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterShowEnvironment() OptionValue[SparseArray[string]] {
return v.afterShowEnvironment
}
// AfterShowMessages returns materialized "after-show-messages" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterShowMessages() OptionValue[SparseArray[string]] {
return v.afterShowMessages
}
// AfterShowOptions returns materialized "after-show-options" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterShowOptions() OptionValue[SparseArray[string]] {
return v.afterShowOptions
}
// AfterSplitWindow returns materialized "after-split-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterSplitWindow() OptionValue[SparseArray[string]] {
return v.afterSplitWindow
}
// AfterUnbindKey returns materialized "after-unbind-key" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AfterUnbindKey() OptionValue[SparseArray[string]] { return v.afterUnbindKey }
// AlertActivity returns materialized "alert-activity" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AlertActivity() OptionValue[SparseArray[string]] { return v.alertActivity }
// AlertBell returns materialized "alert-bell" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AlertBell() OptionValue[SparseArray[string]] { return v.alertBell }
// AlertSilence returns materialized "alert-silence" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) AlertSilence() OptionValue[SparseArray[string]] { return v.alertSilence }
// ClientActive returns materialized "client-active" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientActive() OptionValue[SparseArray[string]] { return v.clientActive }
// ClientAttached returns materialized "client-attached" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientAttached() OptionValue[SparseArray[string]] { return v.clientAttached }
// ClientDarkTheme returns materialized "client-dark-theme" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND since tmux 3.6.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientDarkTheme() OptionValue[SparseArray[string]] {
return v.clientDarkTheme
}
// ClientDetached returns materialized "client-detached" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientDetached() OptionValue[SparseArray[string]] { return v.clientDetached }
// ClientFocusIn returns materialized "client-focus-in" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientFocusIn() OptionValue[SparseArray[string]] { return v.clientFocusIn }
// ClientFocusOut returns materialized "client-focus-out" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientFocusOut() OptionValue[SparseArray[string]] { return v.clientFocusOut }
// ClientLightTheme returns materialized "client-light-theme" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND since tmux 3.6.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientLightTheme() OptionValue[SparseArray[string]] {
return v.clientLightTheme
}
// ClientResized returns materialized "client-resized" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientResized() OptionValue[SparseArray[string]] { return v.clientResized }
// ClientSessionChanged returns materialized "client-session-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) ClientSessionChanged() OptionValue[SparseArray[string]] {
return v.clientSessionChanged
}
// CommandError returns materialized "command-error" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND since tmux 3.5.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) CommandError() OptionValue[SparseArray[string]] { return v.commandError }
// SessionClosed returns materialized "session-closed" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) SessionClosed() OptionValue[SparseArray[string]] { return v.sessionClosed }
// SessionCreated returns materialized "session-created" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) SessionCreated() OptionValue[SparseArray[string]] { return v.sessionCreated }
// SessionRenamed returns materialized "session-renamed" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) SessionRenamed() OptionValue[SparseArray[string]] { return v.sessionRenamed }
// SessionWindowChanged returns materialized "session-window-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) SessionWindowChanged() OptionValue[SparseArray[string]] {
return v.sessionWindowChanged
}
// WindowLinked returns materialized "window-linked" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) WindowLinked() OptionValue[SparseArray[string]] { return v.windowLinked }
// WindowUnlinked returns materialized "window-unlinked" as [OptionValue] with value type OptionValue[SparseArray[string]] from global session-scope hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v ServerHookValues) WindowUnlinked() OptionValue[SparseArray[string]] { return v.windowUnlinked }
func newServerHookValues(values []decodedOptionValue) ServerHookValues {
var result ServerHookValues
for _, value := range values {
switch value.name {
case "after-bind-key":
result.afterBindKey = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-capture-pane":
result.afterCapturePane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-copy-mode":
result.afterCopyMode = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-display-message":
result.afterDisplayMessage = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-display-panes":
result.afterDisplayPanes = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-kill-pane":
result.afterKillPane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-buffers":
result.afterListBuffers = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-clients":
result.afterListClients = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-keys":
result.afterListKeys = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-panes":
result.afterListPanes = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-sessions":
result.afterListSessions = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-windows":
result.afterListWindows = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-load-buffer":
result.afterLoadBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-lock-server":
result.afterLockServer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-new-session":
result.afterNewSession = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-new-window":
result.afterNewWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-paste-buffer":
result.afterPasteBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-pipe-pane":
result.afterPipePane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-queue":
result.afterQueue = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-refresh-client":
result.afterRefreshClient = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-rename-session":
result.afterRenameSession = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-rename-window":
result.afterRenameWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-resize-pane":
result.afterResizePane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-resize-window":
result.afterResizeWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-save-buffer":
result.afterSaveBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-select-layout":
result.afterSelectLayout = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-select-pane":
result.afterSelectPane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-select-window":
result.afterSelectWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-send-keys":
result.afterSendKeys = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-buffer":
result.afterSetBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-environment":
result.afterSetEnvironment = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-hook":
result.afterSetHook = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-option":
result.afterSetOption = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-show-environment":
result.afterShowEnvironment = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-show-messages":
result.afterShowMessages = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-show-options":
result.afterShowOptions = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-split-window":
result.afterSplitWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-unbind-key":
result.afterUnbindKey = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "alert-activity":
result.alertActivity = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "alert-bell":
result.alertBell = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "alert-silence":
result.alertSilence = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-active":
result.clientActive = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-attached":
result.clientAttached = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-dark-theme":
result.clientDarkTheme = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-detached":
result.clientDetached = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-focus-in":
result.clientFocusIn = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-focus-out":
result.clientFocusOut = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-light-theme":
result.clientLightTheme = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-resized":
result.clientResized = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-session-changed":
result.clientSessionChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "command-error":
result.commandError = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-closed":
result.sessionClosed = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-created":
result.sessionCreated = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-renamed":
result.sessionRenamed = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-window-changed":
result.sessionWindowChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-linked":
result.windowLinked = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-unlinked":
result.windowUnlinked = optionValueFromDecoded(value.sparseStringValue, value.origin)
}
}
return result
}
// SessionHookValues is an immutable materialized view of known session hook values; its zero value is empty and it does not refresh.
// Obtain it with [Session.Hooks]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [Session.RawHook] for caller-named or undecoded values.
Stype SessionHookValues struct {
afterBindKey OptionValue[SparseArray[string]]
afterCapturePane OptionValue[SparseArray[string]]
afterCopyMode OptionValue[SparseArray[string]]
afterDisplayMessage OptionValue[SparseArray[string]]
afterDisplayPanes OptionValue[SparseArray[string]]
afterKillPane OptionValue[SparseArray[string]]
afterListBuffers OptionValue[SparseArray[string]]
afterListClients OptionValue[SparseArray[string]]
afterListKeys OptionValue[SparseArray[string]]
afterListPanes OptionValue[SparseArray[string]]
afterListSessions OptionValue[SparseArray[string]]
afterListWindows OptionValue[SparseArray[string]]
afterLoadBuffer OptionValue[SparseArray[string]]
afterLockServer OptionValue[SparseArray[string]]
afterNewSession OptionValue[SparseArray[string]]
afterNewWindow OptionValue[SparseArray[string]]
afterPasteBuffer OptionValue[SparseArray[string]]
afterPipePane OptionValue[SparseArray[string]]
afterQueue OptionValue[SparseArray[string]]
afterRefreshClient OptionValue[SparseArray[string]]
afterRenameSession OptionValue[SparseArray[string]]
afterRenameWindow OptionValue[SparseArray[string]]
afterResizePane OptionValue[SparseArray[string]]
afterResizeWindow OptionValue[SparseArray[string]]
afterSaveBuffer OptionValue[SparseArray[string]]
afterSelectLayout OptionValue[SparseArray[string]]
afterSelectPane OptionValue[SparseArray[string]]
afterSelectWindow OptionValue[SparseArray[string]]
afterSendKeys OptionValue[SparseArray[string]]
afterSetBuffer OptionValue[SparseArray[string]]
afterSetEnvironment OptionValue[SparseArray[string]]
afterSetHook OptionValue[SparseArray[string]]
afterSetOption OptionValue[SparseArray[string]]
afterShowEnvironment OptionValue[SparseArray[string]]
afterShowMessages OptionValue[SparseArray[string]]
afterShowOptions OptionValue[SparseArray[string]]
afterSplitWindow OptionValue[SparseArray[string]]
afterUnbindKey OptionValue[SparseArray[string]]
alertActivity OptionValue[SparseArray[string]]
alertBell OptionValue[SparseArray[string]]
alertSilence OptionValue[SparseArray[string]]
clientActive OptionValue[SparseArray[string]]
clientAttached OptionValue[SparseArray[string]]
clientDarkTheme OptionValue[SparseArray[string]]
clientDetached OptionValue[SparseArray[string]]
clientFocusIn OptionValue[SparseArray[string]]
clientFocusOut OptionValue[SparseArray[string]]
clientLightTheme OptionValue[SparseArray[string]]
clientResized OptionValue[SparseArray[string]]
clientSessionChanged OptionValue[SparseArray[string]]
commandError OptionValue[SparseArray[string]]
sessionClosed OptionValue[SparseArray[string]]
sessionCreated OptionValue[SparseArray[string]]
sessionRenamed OptionValue[SparseArray[string]]
sessionWindowChanged OptionValue[SparseArray[string]]
windowLinked OptionValue[SparseArray[string]]
windowUnlinked OptionValue[SparseArray[string]]
}
// AfterBindKey returns materialized "after-bind-key" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterBindKey() OptionValue[SparseArray[string]] { return v.afterBindKey }
// AfterCapturePane returns materialized "after-capture-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterCapturePane() OptionValue[SparseArray[string]] {
return v.afterCapturePane
}
// AfterCopyMode returns materialized "after-copy-mode" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterCopyMode() OptionValue[SparseArray[string]] { return v.afterCopyMode }
// AfterDisplayMessage returns materialized "after-display-message" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterDisplayMessage() OptionValue[SparseArray[string]] {
return v.afterDisplayMessage
}
// AfterDisplayPanes returns materialized "after-display-panes" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterDisplayPanes() OptionValue[SparseArray[string]] {
return v.afterDisplayPanes
}
// AfterKillPane returns materialized "after-kill-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterKillPane() OptionValue[SparseArray[string]] { return v.afterKillPane }
// AfterListBuffers returns materialized "after-list-buffers" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterListBuffers() OptionValue[SparseArray[string]] {
return v.afterListBuffers
}
// AfterListClients returns materialized "after-list-clients" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterListClients() OptionValue[SparseArray[string]] {
return v.afterListClients
}
// AfterListKeys returns materialized "after-list-keys" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterListKeys() OptionValue[SparseArray[string]] { return v.afterListKeys }
// AfterListPanes returns materialized "after-list-panes" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterListPanes() OptionValue[SparseArray[string]] { return v.afterListPanes }
// AfterListSessions returns materialized "after-list-sessions" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterListSessions() OptionValue[SparseArray[string]] {
return v.afterListSessions
}
// AfterListWindows returns materialized "after-list-windows" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterListWindows() OptionValue[SparseArray[string]] {
return v.afterListWindows
}
// AfterLoadBuffer returns materialized "after-load-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterLoadBuffer() OptionValue[SparseArray[string]] {
return v.afterLoadBuffer
}
// AfterLockServer returns materialized "after-lock-server" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterLockServer() OptionValue[SparseArray[string]] {
return v.afterLockServer
}
// AfterNewSession returns materialized "after-new-session" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterNewSession() OptionValue[SparseArray[string]] {
return v.afterNewSession
}
// AfterNewWindow returns materialized "after-new-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterNewWindow() OptionValue[SparseArray[string]] { return v.afterNewWindow }
// AfterPasteBuffer returns materialized "after-paste-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterPasteBuffer() OptionValue[SparseArray[string]] {
return v.afterPasteBuffer
}
// AfterPipePane returns materialized "after-pipe-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterPipePane() OptionValue[SparseArray[string]] { return v.afterPipePane }
// AfterQueue returns materialized "after-queue" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterQueue() OptionValue[SparseArray[string]] { return v.afterQueue }
// AfterRefreshClient returns materialized "after-refresh-client" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterRefreshClient() OptionValue[SparseArray[string]] {
return v.afterRefreshClient
}
// AfterRenameSession returns materialized "after-rename-session" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterRenameSession() OptionValue[SparseArray[string]] {
return v.afterRenameSession
}
// AfterRenameWindow returns materialized "after-rename-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterRenameWindow() OptionValue[SparseArray[string]] {
return v.afterRenameWindow
}
// AfterResizePane returns materialized "after-resize-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterResizePane() OptionValue[SparseArray[string]] {
return v.afterResizePane
}
// AfterResizeWindow returns materialized "after-resize-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterResizeWindow() OptionValue[SparseArray[string]] {
return v.afterResizeWindow
}
// AfterSaveBuffer returns materialized "after-save-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSaveBuffer() OptionValue[SparseArray[string]] {
return v.afterSaveBuffer
}
// AfterSelectLayout returns materialized "after-select-layout" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSelectLayout() OptionValue[SparseArray[string]] {
return v.afterSelectLayout
}
// AfterSelectPane returns materialized "after-select-pane" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSelectPane() OptionValue[SparseArray[string]] {
return v.afterSelectPane
}
// AfterSelectWindow returns materialized "after-select-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSelectWindow() OptionValue[SparseArray[string]] {
return v.afterSelectWindow
}
// AfterSendKeys returns materialized "after-send-keys" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSendKeys() OptionValue[SparseArray[string]] { return v.afterSendKeys }
// AfterSetBuffer returns materialized "after-set-buffer" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSetBuffer() OptionValue[SparseArray[string]] { return v.afterSetBuffer }
// AfterSetEnvironment returns materialized "after-set-environment" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSetEnvironment() OptionValue[SparseArray[string]] {
return v.afterSetEnvironment
}
// AfterSetHook returns materialized "after-set-hook" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSetHook() OptionValue[SparseArray[string]] { return v.afterSetHook }
// AfterSetOption returns materialized "after-set-option" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSetOption() OptionValue[SparseArray[string]] { return v.afterSetOption }
// AfterShowEnvironment returns materialized "after-show-environment" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterShowEnvironment() OptionValue[SparseArray[string]] {
return v.afterShowEnvironment
}
// AfterShowMessages returns materialized "after-show-messages" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterShowMessages() OptionValue[SparseArray[string]] {
return v.afterShowMessages
}
// AfterShowOptions returns materialized "after-show-options" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterShowOptions() OptionValue[SparseArray[string]] {
return v.afterShowOptions
}
// AfterSplitWindow returns materialized "after-split-window" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterSplitWindow() OptionValue[SparseArray[string]] {
return v.afterSplitWindow
}
// AfterUnbindKey returns materialized "after-unbind-key" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AfterUnbindKey() OptionValue[SparseArray[string]] { return v.afterUnbindKey }
// AlertActivity returns materialized "alert-activity" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AlertActivity() OptionValue[SparseArray[string]] { return v.alertActivity }
// AlertBell returns materialized "alert-bell" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AlertBell() OptionValue[SparseArray[string]] { return v.alertBell }
// AlertSilence returns materialized "alert-silence" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) AlertSilence() OptionValue[SparseArray[string]] { return v.alertSilence }
// ClientActive returns materialized "client-active" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientActive() OptionValue[SparseArray[string]] { return v.clientActive }
// ClientAttached returns materialized "client-attached" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientAttached() OptionValue[SparseArray[string]] { return v.clientAttached }
// ClientDarkTheme returns materialized "client-dark-theme" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND since tmux 3.6.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientDarkTheme() OptionValue[SparseArray[string]] {
return v.clientDarkTheme
}
// ClientDetached returns materialized "client-detached" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientDetached() OptionValue[SparseArray[string]] { return v.clientDetached }
// ClientFocusIn returns materialized "client-focus-in" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientFocusIn() OptionValue[SparseArray[string]] { return v.clientFocusIn }
// ClientFocusOut returns materialized "client-focus-out" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientFocusOut() OptionValue[SparseArray[string]] { return v.clientFocusOut }
// ClientLightTheme returns materialized "client-light-theme" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND since tmux 3.6.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientLightTheme() OptionValue[SparseArray[string]] {
return v.clientLightTheme
}
// ClientResized returns materialized "client-resized" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientResized() OptionValue[SparseArray[string]] { return v.clientResized }
// ClientSessionChanged returns materialized "client-session-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) ClientSessionChanged() OptionValue[SparseArray[string]] {
return v.clientSessionChanged
}
// CommandError returns materialized "command-error" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND since tmux 3.5.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) CommandError() OptionValue[SparseArray[string]] { return v.commandError }
// SessionClosed returns materialized "session-closed" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) SessionClosed() OptionValue[SparseArray[string]] { return v.sessionClosed }
// SessionCreated returns materialized "session-created" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) SessionCreated() OptionValue[SparseArray[string]] { return v.sessionCreated }
// SessionRenamed returns materialized "session-renamed" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) SessionRenamed() OptionValue[SparseArray[string]] { return v.sessionRenamed }
// SessionWindowChanged returns materialized "session-window-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) SessionWindowChanged() OptionValue[SparseArray[string]] {
return v.sessionWindowChanged
}
// WindowLinked returns materialized "window-linked" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) WindowLinked() OptionValue[SparseArray[string]] { return v.windowLinked }
// WindowUnlinked returns materialized "window-unlinked" as [OptionValue] with value type OptionValue[SparseArray[string]] from session hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v SessionHookValues) WindowUnlinked() OptionValue[SparseArray[string]] { return v.windowUnlinked }
func newSessionHookValues(values []decodedOptionValue) SessionHookValues {
var result SessionHookValues
for _, value := range values {
switch value.name {
case "after-bind-key":
result.afterBindKey = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-capture-pane":
result.afterCapturePane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-copy-mode":
result.afterCopyMode = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-display-message":
result.afterDisplayMessage = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-display-panes":
result.afterDisplayPanes = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-kill-pane":
result.afterKillPane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-buffers":
result.afterListBuffers = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-clients":
result.afterListClients = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-keys":
result.afterListKeys = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-panes":
result.afterListPanes = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-sessions":
result.afterListSessions = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-list-windows":
result.afterListWindows = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-load-buffer":
result.afterLoadBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-lock-server":
result.afterLockServer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-new-session":
result.afterNewSession = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-new-window":
result.afterNewWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-paste-buffer":
result.afterPasteBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-pipe-pane":
result.afterPipePane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-queue":
result.afterQueue = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-refresh-client":
result.afterRefreshClient = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-rename-session":
result.afterRenameSession = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-rename-window":
result.afterRenameWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-resize-pane":
result.afterResizePane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-resize-window":
result.afterResizeWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-save-buffer":
result.afterSaveBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-select-layout":
result.afterSelectLayout = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-select-pane":
result.afterSelectPane = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-select-window":
result.afterSelectWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-send-keys":
result.afterSendKeys = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-buffer":
result.afterSetBuffer = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-environment":
result.afterSetEnvironment = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-hook":
result.afterSetHook = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-set-option":
result.afterSetOption = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-show-environment":
result.afterShowEnvironment = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-show-messages":
result.afterShowMessages = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-show-options":
result.afterShowOptions = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-split-window":
result.afterSplitWindow = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "after-unbind-key":
result.afterUnbindKey = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "alert-activity":
result.alertActivity = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "alert-bell":
result.alertBell = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "alert-silence":
result.alertSilence = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-active":
result.clientActive = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-attached":
result.clientAttached = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-dark-theme":
result.clientDarkTheme = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-detached":
result.clientDetached = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-focus-in":
result.clientFocusIn = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-focus-out":
result.clientFocusOut = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-light-theme":
result.clientLightTheme = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-resized":
result.clientResized = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "client-session-changed":
result.clientSessionChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "command-error":
result.commandError = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-closed":
result.sessionClosed = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-created":
result.sessionCreated = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-renamed":
result.sessionRenamed = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "session-window-changed":
result.sessionWindowChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-linked":
result.windowLinked = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-unlinked":
result.windowUnlinked = optionValueFromDecoded(value.sparseStringValue, value.origin)
}
}
return result
}
// WindowHookValues is an immutable materialized view of known window hook values; its zero value is empty and it does not refresh.
// Obtain it with [Window.Hooks] or [GlobalWindowScope.Hooks]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [Window.RawHook] or [GlobalWindowScope.RawHook] for caller-named or undecoded values.
Stype WindowHookValues struct {
paneDied OptionValue[SparseArray[string]]
paneExited OptionValue[SparseArray[string]]
paneFocusIn OptionValue[SparseArray[string]]
paneFocusOut OptionValue[SparseArray[string]]
paneModeChanged OptionValue[SparseArray[string]]
paneSetClipboard OptionValue[SparseArray[string]]
paneTitleChanged OptionValue[SparseArray[string]]
windowLayoutChanged OptionValue[SparseArray[string]]
windowPaneChanged OptionValue[SparseArray[string]]
windowRenamed OptionValue[SparseArray[string]]
windowResized OptionValue[SparseArray[string]]
}
// PaneDied returns materialized "pane-died" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) PaneDied() OptionValue[SparseArray[string]] { return v.paneDied }
// PaneExited returns materialized "pane-exited" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) PaneExited() OptionValue[SparseArray[string]] { return v.paneExited }
// PaneFocusIn returns materialized "pane-focus-in" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) PaneFocusIn() OptionValue[SparseArray[string]] { return v.paneFocusIn }
// PaneFocusOut returns materialized "pane-focus-out" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) PaneFocusOut() OptionValue[SparseArray[string]] { return v.paneFocusOut }
// PaneModeChanged returns materialized "pane-mode-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) PaneModeChanged() OptionValue[SparseArray[string]] {
return v.paneModeChanged
}
// PaneSetClipboard returns materialized "pane-set-clipboard" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) PaneSetClipboard() OptionValue[SparseArray[string]] {
return v.paneSetClipboard
}
// PaneTitleChanged returns materialized "pane-title-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) PaneTitleChanged() OptionValue[SparseArray[string]] {
return v.paneTitleChanged
}
// WindowLayoutChanged returns materialized "window-layout-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) WindowLayoutChanged() OptionValue[SparseArray[string]] {
return v.windowLayoutChanged
}
// WindowPaneChanged returns materialized "window-pane-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) WindowPaneChanged() OptionValue[SparseArray[string]] {
return v.windowPaneChanged
}
// WindowRenamed returns materialized "window-renamed" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) WindowRenamed() OptionValue[SparseArray[string]] { return v.windowRenamed }
// WindowResized returns materialized "window-resized" as [OptionValue] with value type OptionValue[SparseArray[string]] from window hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v WindowHookValues) WindowResized() OptionValue[SparseArray[string]] { return v.windowResized }
func newWindowHookValues(values []decodedOptionValue) WindowHookValues {
var result WindowHookValues
for _, value := range values {
switch value.name {
case "pane-died":
result.paneDied = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-exited":
result.paneExited = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-focus-in":
result.paneFocusIn = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-focus-out":
result.paneFocusOut = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-mode-changed":
result.paneModeChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-set-clipboard":
result.paneSetClipboard = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-title-changed":
result.paneTitleChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-layout-changed":
result.windowLayoutChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-pane-changed":
result.windowPaneChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-renamed":
result.windowRenamed = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "window-resized":
result.windowResized = optionValueFromDecoded(value.sparseStringValue, value.origin)
}
}
return result
}
// PaneHookValues is an immutable materialized view of known pane hook values; its zero value is empty and it does not refresh.
// Obtain it with [Pane.Hooks]. [OptionValue.Get] reports presence and [OptionValue.Origin] reports inheritance.
// Use [Pane.RawHook] for caller-named or undecoded values.
Stype PaneHookValues struct {
paneDied OptionValue[SparseArray[string]]
paneExited OptionValue[SparseArray[string]]
paneFocusIn OptionValue[SparseArray[string]]
paneFocusOut OptionValue[SparseArray[string]]
paneModeChanged OptionValue[SparseArray[string]]
paneSetClipboard OptionValue[SparseArray[string]]
paneTitleChanged OptionValue[SparseArray[string]]
}
// PaneDied returns materialized "pane-died" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneHookValues) PaneDied() OptionValue[SparseArray[string]] { return v.paneDied }
// PaneExited returns materialized "pane-exited" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneHookValues) PaneExited() OptionValue[SparseArray[string]] { return v.paneExited }
// PaneFocusIn returns materialized "pane-focus-in" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneHookValues) PaneFocusIn() OptionValue[SparseArray[string]] { return v.paneFocusIn }
// PaneFocusOut returns materialized "pane-focus-out" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneHookValues) PaneFocusOut() OptionValue[SparseArray[string]] { return v.paneFocusOut }
// PaneModeChanged returns materialized "pane-mode-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneHookValues) PaneModeChanged() OptionValue[SparseArray[string]] { return v.paneModeChanged }
// PaneSetClipboard returns materialized "pane-set-clipboard" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneHookValues) PaneSetClipboard() OptionValue[SparseArray[string]] {
return v.paneSetClipboard
}
// PaneTitleChanged returns materialized "pane-title-changed" as [OptionValue] with value type OptionValue[SparseArray[string]] from pane hook values; it does not query tmux.
// Available as COMMAND.
// Its present SparseArray value preserves assigned tmux indexes, including gaps.
mfunc (v PaneHookValues) PaneTitleChanged() OptionValue[SparseArray[string]] {
return v.paneTitleChanged
}
func newPaneHookValues(values []decodedOptionValue) PaneHookValues {
var result PaneHookValues
for _, value := range values {
switch value.name {
case "pane-died":
result.paneDied = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-exited":
result.paneExited = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-focus-in":
result.paneFocusIn = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-focus-out":
result.paneFocusOut = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-mode-changed":
result.paneModeChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-set-clipboard":
result.paneSetClipboard = optionValueFromDecoded(value.sparseStringValue, value.origin)
case "pane-title-changed":
result.paneTitleChanged = optionValueFromDecoded(value.sparseStringValue, value.origin)
}
}
return result
}
// SetActivityAction stores the "activity-action" session option as ActivityAction.
// Read it with [SessionOptionValues.ActivityAction] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetActivityAction(ctx context.Context, value ActivityAction) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "activity-action", value.String(), true)
}
// SetActivityAction stores the "activity-action" session option as ActivityAction.
// Read it with [SessionOptionValues.ActivityAction] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetActivityAction(ctx context.Context, value ActivityAction) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "activity-action", value.String(), true)
}
// SetAggressiveResize stores the "aggressive-resize" window option as bool.
// Read it with [WindowOptionValues.AggressiveResize] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetAggressiveResize(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "aggressive-resize", encodeTypedOptionBool(value), false)
}
// SetAggressiveResize stores the "aggressive-resize" window option as bool.
// Read it with [WindowOptionValues.AggressiveResize] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetAggressiveResize(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "aggressive-resize", encodeTypedOptionBool(value), false)
}
// SetAllowPassthrough stores the "allow-passthrough" window option as AllowPassthrough.
// Read it with [WindowOptionValues.AllowPassthrough] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetAllowPassthrough(ctx context.Context, value AllowPassthrough) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "allow-passthrough", value.String(), true)
}
// SetAllowPassthrough stores the "allow-passthrough" window option as AllowPassthrough.
// Read it with [WindowOptionValues.AllowPassthrough] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetAllowPassthrough(ctx context.Context, value AllowPassthrough) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "allow-passthrough", value.String(), true)
}
// SetAllowPassthrough stores the "allow-passthrough" pane option as AllowPassthrough.
// Read it with [PaneOptionValues.AllowPassthrough] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetAllowPassthrough(ctx context.Context, value AllowPassthrough) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "allow-passthrough", value.String(), true)
}
// SetAllowRename stores the "allow-rename" window option as bool.
// Read it with [WindowOptionValues.AllowRename] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetAllowRename(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "allow-rename", encodeTypedOptionBool(value), false)
}
// SetAllowRename stores the "allow-rename" window option as bool.
// Read it with [WindowOptionValues.AllowRename] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetAllowRename(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "allow-rename", encodeTypedOptionBool(value), false)
}
// SetAllowRename stores the "allow-rename" pane option as bool.
// Read it with [PaneOptionValues.AllowRename] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetAllowRename(ctx context.Context, value bool) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "allow-rename", encodeTypedOptionBool(value), false)
}
// SetAllowSetTitle stores the "allow-set-title" window option as bool (tmux 3.5 or later).
// Read it with [WindowOptionValues.AllowSetTitle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetAllowSetTitle(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "allow-set-title", encodeTypedOptionBool(value), false)
}
// SetAllowSetTitle stores the "allow-set-title" window option as bool (tmux 3.5 or later).
// Read it with [WindowOptionValues.AllowSetTitle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetAllowSetTitle(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "allow-set-title", encodeTypedOptionBool(value), false)
}
// SetAllowSetTitle stores the "allow-set-title" pane option as bool (tmux 3.5 or later).
// Read it with [PaneOptionValues.AllowSetTitle] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetAllowSetTitle(ctx context.Context, value bool) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "allow-set-title", encodeTypedOptionBool(value), false)
}
// SetAlternateScreen stores the "alternate-screen" window option as bool.
// Read it with [WindowOptionValues.AlternateScreen] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetAlternateScreen(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "alternate-screen", encodeTypedOptionBool(value), false)
}
// SetAlternateScreen stores the "alternate-screen" window option as bool.
// Read it with [WindowOptionValues.AlternateScreen] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetAlternateScreen(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "alternate-screen", encodeTypedOptionBool(value), false)
}
// SetAlternateScreen stores the "alternate-screen" pane option as bool.
// Read it with [PaneOptionValues.AlternateScreen] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetAlternateScreen(ctx context.Context, value bool) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "alternate-screen", encodeTypedOptionBool(value), false)
}
// SetAssumePasteTime stores the "assume-paste-time" session option as time.Duration.
// Read it with [SessionOptionValues.AssumePasteTime] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetAssumePasteTime(ctx context.Context, value time.Duration) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
encoded, err := encodeTypedOptionDuration("assume-paste-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "assume-paste-time", encoded, false)
}
// SetAssumePasteTime stores the "assume-paste-time" session option as time.Duration.
// Read it with [SessionOptionValues.AssumePasteTime] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetAssumePasteTime(ctx context.Context, value time.Duration) error {
server := s.server
scope := []string{"-g"}
encoded, err := encodeTypedOptionDuration("assume-paste-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "assume-paste-time", encoded, false)
}
// SetAutomaticRename stores the "automatic-rename" window option as bool.
// Read it with [WindowOptionValues.AutomaticRename] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetAutomaticRename(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "automatic-rename", encodeTypedOptionBool(value), false)
}
// SetAutomaticRename stores the "automatic-rename" window option as bool.
// Read it with [WindowOptionValues.AutomaticRename] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetAutomaticRename(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "automatic-rename", encodeTypedOptionBool(value), false)
}
// SetAutomaticRenameFormat stores the "automatic-rename-format" window option as string.
// Read it with [WindowOptionValues.AutomaticRenameFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetAutomaticRenameFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "automatic-rename-format", value, false)
}
// SetAutomaticRenameFormat stores the "automatic-rename-format" window option as string.
// Read it with [WindowOptionValues.AutomaticRenameFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetAutomaticRenameFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "automatic-rename-format", value, false)
}
// SetBackspace stores the "backspace" server option as string.
// Read it with [ServerOptionValues.Backspace] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetBackspace(ctx context.Context, value string) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "backspace", value, false)
}
// SetBaseIndex stores the "base-index" session option as int64.
// Read it with [SessionOptionValues.BaseIndex] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetBaseIndex(ctx context.Context, value int64) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "base-index", encodeTypedOptionInt64(value), false)
}
// SetBaseIndex stores the "base-index" session option as int64.
// Read it with [SessionOptionValues.BaseIndex] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetBaseIndex(ctx context.Context, value int64) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "base-index", encodeTypedOptionInt64(value), false)
}
// SetBellAction stores the "bell-action" session option as BellAction.
// Read it with [SessionOptionValues.BellAction] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetBellAction(ctx context.Context, value BellAction) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "bell-action", value.String(), true)
}
// SetBellAction stores the "bell-action" session option as BellAction.
// Read it with [SessionOptionValues.BellAction] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetBellAction(ctx context.Context, value BellAction) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "bell-action", value.String(), true)
}
// SetBufferLimit stores the "buffer-limit" server option as int64.
// Read it with [ServerOptionValues.BufferLimit] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetBufferLimit(ctx context.Context, value int64) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "buffer-limit", encodeTypedOptionInt64(value), false)
}
// SetClockModeColour stores the "clock-mode-colour" window option as string.
// Read it with [WindowOptionValues.ClockModeColour] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetClockModeColour(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "clock-mode-colour", value, false)
}
// SetClockModeColour stores the "clock-mode-colour" window option as string.
// Read it with [WindowOptionValues.ClockModeColour] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetClockModeColour(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "clock-mode-colour", value, false)
}
// SetClockModeStyle stores the "clock-mode-style" window option as ClockModeStyle.
// Read it with [WindowOptionValues.ClockModeStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetClockModeStyle(ctx context.Context, value ClockModeStyle) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "clock-mode-style", value.String(), true)
}
// SetClockModeStyle stores the "clock-mode-style" window option as ClockModeStyle.
// Read it with [WindowOptionValues.ClockModeStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetClockModeStyle(ctx context.Context, value ClockModeStyle) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "clock-mode-style", value.String(), true)
}
// SetCopyCommand stores the "copy-command" server option as string.
// Read it with [ServerOptionValues.CopyCommand] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetCopyCommand(ctx context.Context, value string) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "copy-command", value, false)
}
// SetCopyModeCurrentLineNumberStyle stores the "copy-mode-current-line-number-style" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.CopyModeCurrentLineNumberStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModeCurrentLineNumberStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-current-line-number-style", value, false)
}
// SetCopyModeCurrentLineNumberStyle stores the "copy-mode-current-line-number-style" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.CopyModeCurrentLineNumberStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModeCurrentLineNumberStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-current-line-number-style", value, false)
}
// SetCopyModeCurrentMatchStyle stores the "copy-mode-current-match-style" window option as string.
// Read it with [WindowOptionValues.CopyModeCurrentMatchStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModeCurrentMatchStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-current-match-style", value, false)
}
// SetCopyModeCurrentMatchStyle stores the "copy-mode-current-match-style" window option as string.
// Read it with [WindowOptionValues.CopyModeCurrentMatchStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModeCurrentMatchStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-current-match-style", value, false)
}
// SetCopyModeLineNumberStyle stores the "copy-mode-line-number-style" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.CopyModeLineNumberStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModeLineNumberStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-line-number-style", value, false)
}
// SetCopyModeLineNumberStyle stores the "copy-mode-line-number-style" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.CopyModeLineNumberStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModeLineNumberStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-line-number-style", value, false)
}
// SetCopyModeLineNumbers stores the "copy-mode-line-numbers" window option as CopyModeLineNumbers (tmux 3.7 or later).
// Read it with [WindowOptionValues.CopyModeLineNumbers] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModeLineNumbers(ctx context.Context, value CopyModeLineNumbers) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-line-numbers", value.String(), true)
}
// SetCopyModeLineNumbers stores the "copy-mode-line-numbers" window option as CopyModeLineNumbers (tmux 3.7 or later).
// Read it with [WindowOptionValues.CopyModeLineNumbers] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModeLineNumbers(ctx context.Context, value CopyModeLineNumbers) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-line-numbers", value.String(), true)
}
// SetCopyModeMarkStyle stores the "copy-mode-mark-style" window option as string.
// Read it with [WindowOptionValues.CopyModeMarkStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModeMarkStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-mark-style", value, false)
}
// SetCopyModeMarkStyle stores the "copy-mode-mark-style" window option as string.
// Read it with [WindowOptionValues.CopyModeMarkStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModeMarkStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-mark-style", value, false)
}
// SetCopyModeMatchStyle stores the "copy-mode-match-style" window option as string.
// Read it with [WindowOptionValues.CopyModeMatchStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModeMatchStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-match-style", value, false)
}
// SetCopyModeMatchStyle stores the "copy-mode-match-style" window option as string.
// Read it with [WindowOptionValues.CopyModeMatchStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModeMatchStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-match-style", value, false)
}
// SetCopyModePositionFormat stores the "copy-mode-position-format" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.CopyModePositionFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModePositionFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-position-format", value, false)
}
// SetCopyModePositionFormat stores the "copy-mode-position-format" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.CopyModePositionFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModePositionFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-position-format", value, false)
}
// SetCopyModePositionFormat stores the "copy-mode-position-format" pane option as string (tmux 3.6 or later).
// Read it with [PaneOptionValues.CopyModePositionFormat] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetCopyModePositionFormat(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "copy-mode-position-format", value, false)
}
// SetCopyModePositionStyle stores the "copy-mode-position-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.CopyModePositionStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModePositionStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-position-style", value, false)
}
// SetCopyModePositionStyle stores the "copy-mode-position-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.CopyModePositionStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModePositionStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-position-style", value, false)
}
// SetCopyModeSelectionStyle stores the "copy-mode-selection-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.CopyModeSelectionStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCopyModeSelectionStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-selection-style", value, false)
}
// SetCopyModeSelectionStyle stores the "copy-mode-selection-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.CopyModeSelectionStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCopyModeSelectionStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "copy-mode-selection-style", value, false)
}
// SetCursorColour stores the "cursor-colour" window option as string.
// Read it with [WindowOptionValues.CursorColour] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCursorColour(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "cursor-colour", value, false)
}
// SetCursorColour stores the "cursor-colour" window option as string.
// Read it with [WindowOptionValues.CursorColour] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCursorColour(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "cursor-colour", value, false)
}
// SetCursorColour stores the "cursor-colour" pane option as string.
// Read it with [PaneOptionValues.CursorColour] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetCursorColour(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "cursor-colour", value, false)
}
// SetCursorStyle stores the "cursor-style" window option as CursorStyle.
// Read it with [WindowOptionValues.CursorStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetCursorStyle(ctx context.Context, value CursorStyle) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "cursor-style", value.String(), true)
}
// SetCursorStyle stores the "cursor-style" window option as CursorStyle.
// Read it with [WindowOptionValues.CursorStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetCursorStyle(ctx context.Context, value CursorStyle) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "cursor-style", value.String(), true)
}
// SetCursorStyle stores the "cursor-style" pane option as CursorStyle.
// Read it with [PaneOptionValues.CursorStyle] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetCursorStyle(ctx context.Context, value CursorStyle) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "cursor-style", value.String(), true)
}
// SetDefaultClientCommand stores the "default-client-command" server option as string (tmux 3.6 or later).
// Read it with [ServerOptionValues.DefaultClientCommand] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetDefaultClientCommand(ctx context.Context, value string) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "default-client-command", value, false)
}
// SetDefaultCommand stores the "default-command" session option as string.
// Read it with [SessionOptionValues.DefaultCommand] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDefaultCommand(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "default-command", value, false)
}
// SetDefaultCommand stores the "default-command" session option as string.
// Read it with [SessionOptionValues.DefaultCommand] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDefaultCommand(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "default-command", value, false)
}
// SetDefaultShell stores the "default-shell" session option as string.
// Read it with [SessionOptionValues.DefaultShell] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDefaultShell(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "default-shell", value, false)
}
// SetDefaultShell stores the "default-shell" session option as string.
// Read it with [SessionOptionValues.DefaultShell] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDefaultShell(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "default-shell", value, false)
}
// SetDefaultSize stores the "default-size" session option as string.
// Read it with [SessionOptionValues.DefaultSize] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDefaultSize(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "default-size", value, false)
}
// SetDefaultSize stores the "default-size" session option as string.
// Read it with [SessionOptionValues.DefaultSize] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDefaultSize(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "default-size", value, false)
}
// SetDefaultTerminal stores the "default-terminal" server option as string.
// Read it with [ServerOptionValues.DefaultTerminal] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetDefaultTerminal(ctx context.Context, value string) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "default-terminal", value, false)
}
// SetDestroyUnattached stores the "destroy-unattached" session option as DestroyUnattached.
// Read it with [SessionOptionValues.DestroyUnattached] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDestroyUnattached(ctx context.Context, value DestroyUnattached) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "destroy-unattached", value.String(), true)
}
// SetDestroyUnattached stores the "destroy-unattached" session option as DestroyUnattached.
// Read it with [SessionOptionValues.DestroyUnattached] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDestroyUnattached(ctx context.Context, value DestroyUnattached) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "destroy-unattached", value.String(), true)
}
// SetDetachOnDestroy stores the "detach-on-destroy" session option as DetachOnDestroy.
// Read it with [SessionOptionValues.DetachOnDestroy] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDetachOnDestroy(ctx context.Context, value DetachOnDestroy) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "detach-on-destroy", value.String(), true)
}
// SetDetachOnDestroy stores the "detach-on-destroy" session option as DetachOnDestroy.
// Read it with [SessionOptionValues.DetachOnDestroy] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDetachOnDestroy(ctx context.Context, value DetachOnDestroy) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "detach-on-destroy", value.String(), true)
}
// SetDisplayPanesActiveColour stores the "display-panes-active-colour" session option as string.
// Read it with [SessionOptionValues.DisplayPanesActiveColour] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDisplayPanesActiveColour(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-panes-active-colour", value, false)
}
// SetDisplayPanesActiveColour stores the "display-panes-active-colour" session option as string.
// Read it with [SessionOptionValues.DisplayPanesActiveColour] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDisplayPanesActiveColour(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-panes-active-colour", value, false)
}
// SetDisplayPanesColour stores the "display-panes-colour" session option as string.
// Read it with [SessionOptionValues.DisplayPanesColour] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDisplayPanesColour(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-panes-colour", value, false)
}
// SetDisplayPanesColour stores the "display-panes-colour" session option as string.
// Read it with [SessionOptionValues.DisplayPanesColour] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDisplayPanesColour(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-panes-colour", value, false)
}
// SetDisplayPanesTime stores the "display-panes-time" session option as time.Duration.
// Read it with [SessionOptionValues.DisplayPanesTime] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDisplayPanesTime(ctx context.Context, value time.Duration) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
encoded, err := encodeTypedOptionDuration("display-panes-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-panes-time", encoded, false)
}
// SetDisplayPanesTime stores the "display-panes-time" session option as time.Duration.
// Read it with [SessionOptionValues.DisplayPanesTime] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDisplayPanesTime(ctx context.Context, value time.Duration) error {
server := s.server
scope := []string{"-g"}
encoded, err := encodeTypedOptionDuration("display-panes-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-panes-time", encoded, false)
}
// SetDisplayTime stores the "display-time" session option as time.Duration.
// Read it with [SessionOptionValues.DisplayTime] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetDisplayTime(ctx context.Context, value time.Duration) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
encoded, err := encodeTypedOptionDuration("display-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-time", encoded, false)
}
// SetDisplayTime stores the "display-time" session option as time.Duration.
// Read it with [SessionOptionValues.DisplayTime] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetDisplayTime(ctx context.Context, value time.Duration) error {
server := s.server
scope := []string{"-g"}
encoded, err := encodeTypedOptionDuration("display-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "display-time", encoded, false)
}
// SetEditor stores the "editor" server option as string.
// Read it with [ServerOptionValues.Editor] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetEditor(ctx context.Context, value string) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "editor", value, false)
}
// SetEscapeTime stores the "escape-time" server option as time.Duration.
// Read it with [ServerOptionValues.EscapeTime] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetEscapeTime(ctx context.Context, value time.Duration) error {
server := s
scope := []string{"-s"}
encoded, err := encodeTypedOptionDuration("escape-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "escape-time", encoded, false)
}
// SetExitEmpty stores the "exit-empty" server option as bool.
// Read it with [ServerOptionValues.ExitEmpty] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetExitEmpty(ctx context.Context, value bool) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "exit-empty", encodeTypedOptionBool(value), false)
}
// SetExitUnattached stores the "exit-unattached" server option as bool.
// Read it with [ServerOptionValues.ExitUnattached] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetExitUnattached(ctx context.Context, value bool) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "exit-unattached", encodeTypedOptionBool(value), false)
}
// SetExtendedKeys stores the "extended-keys" server option as ExtendedKeys.
// Read it with [ServerOptionValues.ExtendedKeys] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetExtendedKeys(ctx context.Context, value ExtendedKeys) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "extended-keys", value.String(), true)
}
// SetExtendedKeysFormat stores the "extended-keys-format" server option as ExtendedKeysFormat (tmux 3.5 or later).
// Read it with [ServerOptionValues.ExtendedKeysFormat] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetExtendedKeysFormat(ctx context.Context, value ExtendedKeysFormat) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "extended-keys-format", value.String(), true)
}
// SetFillCharacter stores the "fill-character" window option as string.
// Read it with [WindowOptionValues.FillCharacter] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetFillCharacter(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "fill-character", value, false)
}
// SetFillCharacter stores the "fill-character" window option as string.
// Read it with [WindowOptionValues.FillCharacter] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetFillCharacter(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "fill-character", value, false)
}
// SetFocusEvents stores the "focus-events" server option as bool.
// Read it with [ServerOptionValues.FocusEvents] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetFocusEvents(ctx context.Context, value bool) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "focus-events", encodeTypedOptionBool(value), false)
}
// SetFocusFollowsMouse stores the "focus-follows-mouse" session option as bool (tmux 3.7 or later).
// Read it with [SessionOptionValues.FocusFollowsMouse] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetFocusFollowsMouse(ctx context.Context, value bool) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "focus-follows-mouse", encodeTypedOptionBool(value), false)
}
// SetFocusFollowsMouse stores the "focus-follows-mouse" session option as bool (tmux 3.7 or later).
// Read it with [SessionOptionValues.FocusFollowsMouse] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetFocusFollowsMouse(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "focus-follows-mouse", encodeTypedOptionBool(value), false)
}
// SetGetClipboard stores the "get-clipboard" server option as GetClipboard (tmux 3.7 or later).
// Read it with [ServerOptionValues.GetClipboard] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetGetClipboard(ctx context.Context, value GetClipboard) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "get-clipboard", value.String(), true)
}
// SetHistoryFile stores the "history-file" server option as string.
// Read it with [ServerOptionValues.HistoryFile] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetHistoryFile(ctx context.Context, value string) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "history-file", value, false)
}
// SetHistoryLimit stores the "history-limit" session option as int64.
// Read it with [SessionOptionValues.HistoryLimit] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetHistoryLimit(ctx context.Context, value int64) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "history-limit", encodeTypedOptionInt64(value), false)
}
// SetHistoryLimit stores the "history-limit" session option as int64.
// Read it with [SessionOptionValues.HistoryLimit] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetHistoryLimit(ctx context.Context, value int64) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "history-limit", encodeTypedOptionInt64(value), false)
}
// SetInitialRepeatTime stores the "initial-repeat-time" session option as time.Duration (tmux 3.6 or later).
// Read it with [SessionOptionValues.InitialRepeatTime] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetInitialRepeatTime(ctx context.Context, value time.Duration) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
encoded, err := encodeTypedOptionDuration("initial-repeat-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "initial-repeat-time", encoded, false)
}
// SetInitialRepeatTime stores the "initial-repeat-time" session option as time.Duration (tmux 3.6 or later).
// Read it with [SessionOptionValues.InitialRepeatTime] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetInitialRepeatTime(ctx context.Context, value time.Duration) error {
server := s.server
scope := []string{"-g"}
encoded, err := encodeTypedOptionDuration("initial-repeat-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "initial-repeat-time", encoded, false)
}
// SetInputBufferSize stores the "input-buffer-size" server option as int64 (tmux 3.6 or later).
// Read it with [ServerOptionValues.InputBufferSize] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetInputBufferSize(ctx context.Context, value int64) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "input-buffer-size", encodeTypedOptionInt64(value), false)
}
// SetKeyTable stores the "key-table" session option as string.
// Read it with [SessionOptionValues.KeyTable] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetKeyTable(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "key-table", value, false)
}
// SetKeyTable stores the "key-table" session option as string.
// Read it with [SessionOptionValues.KeyTable] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetKeyTable(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "key-table", value, false)
}
// SetLockAfterTime stores the "lock-after-time" session option as time.Duration.
// Read it with [SessionOptionValues.LockAfterTime] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetLockAfterTime(ctx context.Context, value time.Duration) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
encoded, err := encodeTypedOptionDuration("lock-after-time", value, time.Second)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "lock-after-time", encoded, false)
}
// SetLockAfterTime stores the "lock-after-time" session option as time.Duration.
// Read it with [SessionOptionValues.LockAfterTime] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetLockAfterTime(ctx context.Context, value time.Duration) error {
server := s.server
scope := []string{"-g"}
encoded, err := encodeTypedOptionDuration("lock-after-time", value, time.Second)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "lock-after-time", encoded, false)
}
// SetLockCommand stores the "lock-command" session option as string.
// Read it with [SessionOptionValues.LockCommand] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetLockCommand(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "lock-command", value, false)
}
// SetLockCommand stores the "lock-command" session option as string.
// Read it with [SessionOptionValues.LockCommand] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetLockCommand(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "lock-command", value, false)
}
// SetMainPaneHeight stores the "main-pane-height" window option as string.
// Read it with [WindowOptionValues.MainPaneHeight] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMainPaneHeight(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "main-pane-height", value, false)
}
// SetMainPaneHeight stores the "main-pane-height" window option as string.
// Read it with [WindowOptionValues.MainPaneHeight] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMainPaneHeight(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "main-pane-height", value, false)
}
// SetMainPaneWidth stores the "main-pane-width" window option as string.
// Read it with [WindowOptionValues.MainPaneWidth] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMainPaneWidth(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "main-pane-width", value, false)
}
// SetMainPaneWidth stores the "main-pane-width" window option as string.
// Read it with [WindowOptionValues.MainPaneWidth] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMainPaneWidth(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "main-pane-width", value, false)
}
// SetMenuBorderLines stores the "menu-border-lines" window option as MenuBorderLines (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuBorderLines] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMenuBorderLines(ctx context.Context, value MenuBorderLines) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-border-lines", value.String(), true)
}
// SetMenuBorderLines stores the "menu-border-lines" window option as MenuBorderLines (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuBorderLines] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMenuBorderLines(ctx context.Context, value MenuBorderLines) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-border-lines", value.String(), true)
}
// SetMenuBorderStyle stores the "menu-border-style" window option as string (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuBorderStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMenuBorderStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-border-style", value, false)
}
// SetMenuBorderStyle stores the "menu-border-style" window option as string (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuBorderStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMenuBorderStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-border-style", value, false)
}
// SetMenuSelectedStyle stores the "menu-selected-style" window option as string (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuSelectedStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMenuSelectedStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-selected-style", value, false)
}
// SetMenuSelectedStyle stores the "menu-selected-style" window option as string (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuSelectedStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMenuSelectedStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-selected-style", value, false)
}
// SetMenuStyle stores the "menu-style" window option as string (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMenuStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-style", value, false)
}
// SetMenuStyle stores the "menu-style" window option as string (tmux 3.4 or later).
// Read it with [WindowOptionValues.MenuStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMenuStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "menu-style", value, false)
}
// SetMessageCommandStyle stores the "message-command-style" session option as string.
// Read it with [SessionOptionValues.MessageCommandStyle] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetMessageCommandStyle(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-command-style", value, false)
}
// SetMessageCommandStyle stores the "message-command-style" session option as string.
// Read it with [SessionOptionValues.MessageCommandStyle] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetMessageCommandStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-command-style", value, false)
}
// SetMessageFormat stores the "message-format" session option as string (tmux 3.7 or later).
// Read it with [SessionOptionValues.MessageFormat] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetMessageFormat(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-format", value, false)
}
// SetMessageFormat stores the "message-format" session option as string (tmux 3.7 or later).
// Read it with [SessionOptionValues.MessageFormat] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetMessageFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-format", value, false)
}
// SetMessageLimit stores the "message-limit" server option as int64.
// Read it with [ServerOptionValues.MessageLimit] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetMessageLimit(ctx context.Context, value int64) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "message-limit", encodeTypedOptionInt64(value), false)
}
// SetMessageLine stores the "message-line" session option as MessageLine (tmux 3.4 or later).
// Read it with [SessionOptionValues.MessageLine] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetMessageLine(ctx context.Context, value MessageLine) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-line", value.String(), true)
}
// SetMessageLine stores the "message-line" session option as MessageLine (tmux 3.4 or later).
// Read it with [SessionOptionValues.MessageLine] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetMessageLine(ctx context.Context, value MessageLine) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-line", value.String(), true)
}
// SetMessageStyle stores the "message-style" session option as string.
// Read it with [SessionOptionValues.MessageStyle] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetMessageStyle(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-style", value, false)
}
// SetMessageStyle stores the "message-style" session option as string.
// Read it with [SessionOptionValues.MessageStyle] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetMessageStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "message-style", value, false)
}
// SetModeKeys stores the "mode-keys" window option as ModeKeys.
// Read it with [WindowOptionValues.ModeKeys] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetModeKeys(ctx context.Context, value ModeKeys) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "mode-keys", value.String(), true)
}
// SetModeKeys stores the "mode-keys" window option as ModeKeys.
// Read it with [WindowOptionValues.ModeKeys] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetModeKeys(ctx context.Context, value ModeKeys) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "mode-keys", value.String(), true)
}
// SetModeStyle stores the "mode-style" window option as string.
// Read it with [WindowOptionValues.ModeStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetModeStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "mode-style", value, false)
}
// SetModeStyle stores the "mode-style" window option as string.
// Read it with [WindowOptionValues.ModeStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetModeStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "mode-style", value, false)
}
// SetMonitorActivity stores the "monitor-activity" window option as bool.
// Read it with [WindowOptionValues.MonitorActivity] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMonitorActivity(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "monitor-activity", encodeTypedOptionBool(value), false)
}
// SetMonitorActivity stores the "monitor-activity" window option as bool.
// Read it with [WindowOptionValues.MonitorActivity] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMonitorActivity(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "monitor-activity", encodeTypedOptionBool(value), false)
}
// SetMonitorBell stores the "monitor-bell" window option as bool.
// Read it with [WindowOptionValues.MonitorBell] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMonitorBell(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "monitor-bell", encodeTypedOptionBool(value), false)
}
// SetMonitorBell stores the "monitor-bell" window option as bool.
// Read it with [WindowOptionValues.MonitorBell] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMonitorBell(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "monitor-bell", encodeTypedOptionBool(value), false)
}
// SetMonitorSilence stores the "monitor-silence" window option as int64.
// Read it with [WindowOptionValues.MonitorSilence] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetMonitorSilence(ctx context.Context, value int64) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "monitor-silence", encodeTypedOptionInt64(value), false)
}
// SetMonitorSilence stores the "monitor-silence" window option as int64.
// Read it with [WindowOptionValues.MonitorSilence] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetMonitorSilence(ctx context.Context, value int64) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "monitor-silence", encodeTypedOptionInt64(value), false)
}
// SetMouse stores the "mouse" session option as bool.
// Read it with [SessionOptionValues.Mouse] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetMouse(ctx context.Context, value bool) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "mouse", encodeTypedOptionBool(value), false)
}
// SetMouse stores the "mouse" session option as bool.
// Read it with [SessionOptionValues.Mouse] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetMouse(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "mouse", encodeTypedOptionBool(value), false)
}
// SetOtherPaneHeight stores the "other-pane-height" window option as string.
// Read it with [WindowOptionValues.OtherPaneHeight] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetOtherPaneHeight(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "other-pane-height", value, false)
}
// SetOtherPaneHeight stores the "other-pane-height" window option as string.
// Read it with [WindowOptionValues.OtherPaneHeight] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetOtherPaneHeight(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "other-pane-height", value, false)
}
// SetOtherPaneWidth stores the "other-pane-width" window option as string.
// Read it with [WindowOptionValues.OtherPaneWidth] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetOtherPaneWidth(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "other-pane-width", value, false)
}
// SetOtherPaneWidth stores the "other-pane-width" window option as string.
// Read it with [WindowOptionValues.OtherPaneWidth] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetOtherPaneWidth(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "other-pane-width", value, false)
}
// SetPaneActiveBorderStyle stores the "pane-active-border-style" window option as string.
// Read it with [WindowOptionValues.PaneActiveBorderStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneActiveBorderStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-active-border-style", value, false)
}
// SetPaneActiveBorderStyle stores the "pane-active-border-style" window option as string.
// Read it with [WindowOptionValues.PaneActiveBorderStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneActiveBorderStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-active-border-style", value, false)
}
// SetPaneActiveBorderStyle stores the "pane-active-border-style" pane option as string (tmux 3.7 or later).
// Read it with [PaneOptionValues.PaneActiveBorderStyle] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetPaneActiveBorderStyle(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "pane-active-border-style", value, false)
}
// SetPaneBaseIndex stores the "pane-base-index" window option as int64.
// Read it with [WindowOptionValues.PaneBaseIndex] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneBaseIndex(ctx context.Context, value int64) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-base-index", encodeTypedOptionInt64(value), false)
}
// SetPaneBaseIndex stores the "pane-base-index" window option as int64.
// Read it with [WindowOptionValues.PaneBaseIndex] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneBaseIndex(ctx context.Context, value int64) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-base-index", encodeTypedOptionInt64(value), false)
}
// SetPaneBorderFormat stores the "pane-border-format" window option as string.
// Read it with [WindowOptionValues.PaneBorderFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneBorderFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-format", value, false)
}
// SetPaneBorderFormat stores the "pane-border-format" window option as string.
// Read it with [WindowOptionValues.PaneBorderFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneBorderFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-format", value, false)
}
// SetPaneBorderFormat stores the "pane-border-format" pane option as string.
// Read it with [PaneOptionValues.PaneBorderFormat] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetPaneBorderFormat(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "pane-border-format", value, false)
}
// SetPaneBorderIndicators stores the "pane-border-indicators" window option as PaneBorderIndicators.
// Read it with [WindowOptionValues.PaneBorderIndicators] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneBorderIndicators(ctx context.Context, value PaneBorderIndicators) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-indicators", value.String(), true)
}
// SetPaneBorderIndicators stores the "pane-border-indicators" window option as PaneBorderIndicators.
// Read it with [WindowOptionValues.PaneBorderIndicators] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneBorderIndicators(ctx context.Context, value PaneBorderIndicators) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-indicators", value.String(), true)
}
// SetPaneBorderLines stores the "pane-border-lines" window option as PaneBorderLines.
// Read it with [WindowOptionValues.PaneBorderLines] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneBorderLines(ctx context.Context, value PaneBorderLines) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-lines", value.String(), true)
}
// SetPaneBorderLines stores the "pane-border-lines" window option as PaneBorderLines.
// Read it with [WindowOptionValues.PaneBorderLines] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneBorderLines(ctx context.Context, value PaneBorderLines) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-lines", value.String(), true)
}
// SetPaneBorderStatus stores the "pane-border-status" window option as PaneBorderStatus.
// Read it with [WindowOptionValues.PaneBorderStatus] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneBorderStatus(ctx context.Context, value PaneBorderStatus) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-status", value.String(), true)
}
// SetPaneBorderStatus stores the "pane-border-status" window option as PaneBorderStatus.
// Read it with [WindowOptionValues.PaneBorderStatus] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneBorderStatus(ctx context.Context, value PaneBorderStatus) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-status", value.String(), true)
}
// SetPaneBorderStyle stores the "pane-border-style" window option as string.
// Read it with [WindowOptionValues.PaneBorderStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneBorderStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-style", value, false)
}
// SetPaneBorderStyle stores the "pane-border-style" window option as string.
// Read it with [WindowOptionValues.PaneBorderStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneBorderStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-border-style", value, false)
}
// SetPaneBorderStyle stores the "pane-border-style" pane option as string (tmux 3.7 or later).
// Read it with [PaneOptionValues.PaneBorderStyle] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetPaneBorderStyle(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "pane-border-style", value, false)
}
// SetPaneScrollbars stores the "pane-scrollbars" window option as PaneScrollbars (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneScrollbars] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneScrollbars(ctx context.Context, value PaneScrollbars) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-scrollbars", value.String(), true)
}
// SetPaneScrollbars stores the "pane-scrollbars" window option as PaneScrollbars (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneScrollbars] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneScrollbars(ctx context.Context, value PaneScrollbars) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-scrollbars", value.String(), true)
}
// SetPaneScrollbarsPosition stores the "pane-scrollbars-position" window option as PaneScrollbarsPosition (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneScrollbarsPosition] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneScrollbarsPosition(ctx context.Context, value PaneScrollbarsPosition) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-scrollbars-position", value.String(), true)
}
// SetPaneScrollbarsPosition stores the "pane-scrollbars-position" window option as PaneScrollbarsPosition (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneScrollbarsPosition] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneScrollbarsPosition(ctx context.Context, value PaneScrollbarsPosition) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-scrollbars-position", value.String(), true)
}
// SetPaneScrollbarsStyle stores the "pane-scrollbars-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneScrollbarsStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneScrollbarsStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-scrollbars-style", value, false)
}
// SetPaneScrollbarsStyle stores the "pane-scrollbars-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneScrollbarsStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneScrollbarsStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-scrollbars-style", value, false)
}
// SetPaneScrollbarsStyle stores the "pane-scrollbars-style" pane option as string (tmux 3.6 or later).
// Read it with [PaneOptionValues.PaneScrollbarsStyle] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetPaneScrollbarsStyle(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "pane-scrollbars-style", value, false)
}
// SetPaneStatusCurrentStyle stores the "pane-status-current-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneStatusCurrentStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneStatusCurrentStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-status-current-style", value, false)
}
// SetPaneStatusCurrentStyle stores the "pane-status-current-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneStatusCurrentStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneStatusCurrentStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-status-current-style", value, false)
}
// SetPaneStatusStyle stores the "pane-status-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneStatusStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPaneStatusStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-status-style", value, false)
}
// SetPaneStatusStyle stores the "pane-status-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.PaneStatusStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPaneStatusStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "pane-status-style", value, false)
}
// SetPopupBorderLines stores the "popup-border-lines" window option as PopupBorderLines.
// Read it with [WindowOptionValues.PopupBorderLines] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPopupBorderLines(ctx context.Context, value PopupBorderLines) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "popup-border-lines", value.String(), true)
}
// SetPopupBorderLines stores the "popup-border-lines" window option as PopupBorderLines.
// Read it with [WindowOptionValues.PopupBorderLines] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPopupBorderLines(ctx context.Context, value PopupBorderLines) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "popup-border-lines", value.String(), true)
}
// SetPopupBorderStyle stores the "popup-border-style" window option as string.
// Read it with [WindowOptionValues.PopupBorderStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPopupBorderStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "popup-border-style", value, false)
}
// SetPopupBorderStyle stores the "popup-border-style" window option as string.
// Read it with [WindowOptionValues.PopupBorderStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPopupBorderStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "popup-border-style", value, false)
}
// SetPopupStyle stores the "popup-style" window option as string.
// Read it with [WindowOptionValues.PopupStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetPopupStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "popup-style", value, false)
}
// SetPopupStyle stores the "popup-style" window option as string.
// Read it with [WindowOptionValues.PopupStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetPopupStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "popup-style", value, false)
}
// SetPrefix stores the "prefix" session option as string.
// Read it with [SessionOptionValues.Prefix] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetPrefix(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prefix", value, false)
}
// SetPrefix stores the "prefix" session option as string.
// Read it with [SessionOptionValues.Prefix] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetPrefix(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prefix", value, false)
}
// SetPrefixTimeout stores the "prefix-timeout" server option as time.Duration (tmux 3.5 or later).
// Read it with [ServerOptionValues.PrefixTimeout] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetPrefixTimeout(ctx context.Context, value time.Duration) error {
server := s
scope := []string{"-s"}
encoded, err := encodeTypedOptionDuration("prefix-timeout", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "prefix-timeout", encoded, false)
}
// SetPrefix2 stores the "prefix2" session option as string.
// Read it with [SessionOptionValues.Prefix2] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetPrefix2(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prefix2", value, false)
}
// SetPrefix2 stores the "prefix2" session option as string.
// Read it with [SessionOptionValues.Prefix2] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetPrefix2(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prefix2", value, false)
}
// SetPromptCommandCursorStyle stores the "prompt-command-cursor-style" session option as PromptCommandCursorStyle (tmux 3.7 or later).
// Read it with [SessionOptionValues.PromptCommandCursorStyle] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetPromptCommandCursorStyle(ctx context.Context, value PromptCommandCursorStyle) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prompt-command-cursor-style", value.String(), true)
}
// SetPromptCommandCursorStyle stores the "prompt-command-cursor-style" session option as PromptCommandCursorStyle (tmux 3.7 or later).
// Read it with [SessionOptionValues.PromptCommandCursorStyle] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetPromptCommandCursorStyle(ctx context.Context, value PromptCommandCursorStyle) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prompt-command-cursor-style", value.String(), true)
}
// SetPromptCursorColour stores the "prompt-cursor-colour" session option as string (tmux 3.6 or later).
// Read it with [SessionOptionValues.PromptCursorColour] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetPromptCursorColour(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prompt-cursor-colour", value, false)
}
// SetPromptCursorColour stores the "prompt-cursor-colour" session option as string (tmux 3.6 or later).
// Read it with [SessionOptionValues.PromptCursorColour] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetPromptCursorColour(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prompt-cursor-colour", value, false)
}
// SetPromptCursorStyle stores the "prompt-cursor-style" session option as PromptCursorStyle (tmux 3.6 or later).
// Read it with [SessionOptionValues.PromptCursorStyle] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetPromptCursorStyle(ctx context.Context, value PromptCursorStyle) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prompt-cursor-style", value.String(), true)
}
// SetPromptCursorStyle stores the "prompt-cursor-style" session option as PromptCursorStyle (tmux 3.6 or later).
// Read it with [SessionOptionValues.PromptCursorStyle] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetPromptCursorStyle(ctx context.Context, value PromptCursorStyle) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "prompt-cursor-style", value.String(), true)
}
// SetPromptHistoryLimit stores the "prompt-history-limit" server option as int64.
// Read it with [ServerOptionValues.PromptHistoryLimit] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetPromptHistoryLimit(ctx context.Context, value int64) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "prompt-history-limit", encodeTypedOptionInt64(value), false)
}
// SetRemainOnExit stores the "remain-on-exit" window option as RemainOnExit.
// Read it with [WindowOptionValues.RemainOnExit] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetRemainOnExit(ctx context.Context, value RemainOnExit) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "remain-on-exit", value.String(), true)
}
// SetRemainOnExit stores the "remain-on-exit" window option as RemainOnExit.
// Read it with [WindowOptionValues.RemainOnExit] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetRemainOnExit(ctx context.Context, value RemainOnExit) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "remain-on-exit", value.String(), true)
}
// SetRemainOnExit stores the "remain-on-exit" pane option as RemainOnExit.
// Read it with [PaneOptionValues.RemainOnExit] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetRemainOnExit(ctx context.Context, value RemainOnExit) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "remain-on-exit", value.String(), true)
}
// SetRemainOnExitFormat stores the "remain-on-exit-format" window option as string.
// Read it with [WindowOptionValues.RemainOnExitFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetRemainOnExitFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "remain-on-exit-format", value, false)
}
// SetRemainOnExitFormat stores the "remain-on-exit-format" window option as string.
// Read it with [WindowOptionValues.RemainOnExitFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetRemainOnExitFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "remain-on-exit-format", value, false)
}
// SetRemainOnExitFormat stores the "remain-on-exit-format" pane option as string.
// Read it with [PaneOptionValues.RemainOnExitFormat] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetRemainOnExitFormat(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "remain-on-exit-format", value, false)
}
// SetRenumberWindows stores the "renumber-windows" session option as bool.
// Read it with [SessionOptionValues.RenumberWindows] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetRenumberWindows(ctx context.Context, value bool) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "renumber-windows", encodeTypedOptionBool(value), false)
}
// SetRenumberWindows stores the "renumber-windows" session option as bool.
// Read it with [SessionOptionValues.RenumberWindows] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetRenumberWindows(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "renumber-windows", encodeTypedOptionBool(value), false)
}
// SetRepeatTime stores the "repeat-time" session option as time.Duration.
// Read it with [SessionOptionValues.RepeatTime] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetRepeatTime(ctx context.Context, value time.Duration) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
encoded, err := encodeTypedOptionDuration("repeat-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "repeat-time", encoded, false)
}
// SetRepeatTime stores the "repeat-time" session option as time.Duration.
// Read it with [SessionOptionValues.RepeatTime] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetRepeatTime(ctx context.Context, value time.Duration) error {
server := s.server
scope := []string{"-g"}
encoded, err := encodeTypedOptionDuration("repeat-time", value, time.Millisecond)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "repeat-time", encoded, false)
}
// SetScrollOnClear stores the "scroll-on-clear" window option as bool.
// Read it with [WindowOptionValues.ScrollOnClear] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetScrollOnClear(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "scroll-on-clear", encodeTypedOptionBool(value), false)
}
// SetScrollOnClear stores the "scroll-on-clear" window option as bool.
// Read it with [WindowOptionValues.ScrollOnClear] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetScrollOnClear(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "scroll-on-clear", encodeTypedOptionBool(value), false)
}
// SetScrollOnClear stores the "scroll-on-clear" pane option as bool.
// Read it with [PaneOptionValues.ScrollOnClear] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetScrollOnClear(ctx context.Context, value bool) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "scroll-on-clear", encodeTypedOptionBool(value), false)
}
// SetSessionStatusCurrentStyle stores the "session-status-current-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.SessionStatusCurrentStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetSessionStatusCurrentStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "session-status-current-style", value, false)
}
// SetSessionStatusCurrentStyle stores the "session-status-current-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.SessionStatusCurrentStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetSessionStatusCurrentStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "session-status-current-style", value, false)
}
// SetSessionStatusStyle stores the "session-status-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.SessionStatusStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetSessionStatusStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "session-status-style", value, false)
}
// SetSessionStatusStyle stores the "session-status-style" window option as string (tmux 3.6 or later).
// Read it with [WindowOptionValues.SessionStatusStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetSessionStatusStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "session-status-style", value, false)
}
// SetClipboard stores the "set-clipboard" server option as SetClipboard.
// Read it with [ServerOptionValues.SetClipboard] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetClipboard(ctx context.Context, value SetClipboard) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "set-clipboard", value.String(), true)
}
// SetTitles stores the "set-titles" session option as bool.
// Read it with [SessionOptionValues.SetTitles] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetTitles(ctx context.Context, value bool) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "set-titles", encodeTypedOptionBool(value), false)
}
// SetTitles stores the "set-titles" session option as bool.
// Read it with [SessionOptionValues.SetTitles] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetTitles(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "set-titles", encodeTypedOptionBool(value), false)
}
// SetTitlesString stores the "set-titles-string" session option as string.
// Read it with [SessionOptionValues.SetTitlesString] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetTitlesString(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "set-titles-string", value, false)
}
// SetTitlesString stores the "set-titles-string" session option as string.
// Read it with [SessionOptionValues.SetTitlesString] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetTitlesString(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "set-titles-string", value, false)
}
// SetSilenceAction stores the "silence-action" session option as SilenceAction.
// Read it with [SessionOptionValues.SilenceAction] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetSilenceAction(ctx context.Context, value SilenceAction) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "silence-action", value.String(), true)
}
// SetSilenceAction stores the "silence-action" session option as SilenceAction.
// Read it with [SessionOptionValues.SilenceAction] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetSilenceAction(ctx context.Context, value SilenceAction) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "silence-action", value.String(), true)
}
// SetStatus stores the "status" session option as Status.
// Read it with [SessionOptionValues.Status] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatus(ctx context.Context, value Status) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status", value.String(), true)
}
// SetStatus stores the "status" session option as Status.
// Read it with [SessionOptionValues.Status] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatus(ctx context.Context, value Status) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status", value.String(), true)
}
// SetStatusBG stores the "status-bg" session option as string.
// Read it with [SessionOptionValues.StatusBG] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusBG(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-bg", value, false)
}
// SetStatusBG stores the "status-bg" session option as string.
// Read it with [SessionOptionValues.StatusBG] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusBG(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-bg", value, false)
}
// SetStatusFG stores the "status-fg" session option as string.
// Read it with [SessionOptionValues.StatusFG] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusFG(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-fg", value, false)
}
// SetStatusFG stores the "status-fg" session option as string.
// Read it with [SessionOptionValues.StatusFG] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusFG(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-fg", value, false)
}
// SetStatusInterval stores the "status-interval" session option as time.Duration.
// Read it with [SessionOptionValues.StatusInterval] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusInterval(ctx context.Context, value time.Duration) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
encoded, err := encodeTypedOptionDuration("status-interval", value, time.Second)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-interval", encoded, false)
}
// SetStatusInterval stores the "status-interval" session option as time.Duration.
// Read it with [SessionOptionValues.StatusInterval] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusInterval(ctx context.Context, value time.Duration) error {
server := s.server
scope := []string{"-g"}
encoded, err := encodeTypedOptionDuration("status-interval", value, time.Second)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-interval", encoded, false)
}
// SetStatusJustify stores the "status-justify" session option as StatusJustify.
// Read it with [SessionOptionValues.StatusJustify] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusJustify(ctx context.Context, value StatusJustify) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-justify", value.String(), true)
}
// SetStatusJustify stores the "status-justify" session option as StatusJustify.
// Read it with [SessionOptionValues.StatusJustify] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusJustify(ctx context.Context, value StatusJustify) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-justify", value.String(), true)
}
// SetStatusKeys stores the "status-keys" session option as StatusKeys.
// Read it with [SessionOptionValues.StatusKeys] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusKeys(ctx context.Context, value StatusKeys) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-keys", value.String(), true)
}
// SetStatusKeys stores the "status-keys" session option as StatusKeys.
// Read it with [SessionOptionValues.StatusKeys] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusKeys(ctx context.Context, value StatusKeys) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-keys", value.String(), true)
}
// SetStatusLeft stores the "status-left" session option as string.
// Read it with [SessionOptionValues.StatusLeft] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusLeft(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-left", value, false)
}
// SetStatusLeft stores the "status-left" session option as string.
// Read it with [SessionOptionValues.StatusLeft] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusLeft(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-left", value, false)
}
// SetStatusLeftLength stores the "status-left-length" session option as int64.
// Read it with [SessionOptionValues.StatusLeftLength] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusLeftLength(ctx context.Context, value int64) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-left-length", encodeTypedOptionInt64(value), false)
}
// SetStatusLeftLength stores the "status-left-length" session option as int64.
// Read it with [SessionOptionValues.StatusLeftLength] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusLeftLength(ctx context.Context, value int64) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-left-length", encodeTypedOptionInt64(value), false)
}
// SetStatusLeftStyle stores the "status-left-style" session option as string.
// Read it with [SessionOptionValues.StatusLeftStyle] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusLeftStyle(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-left-style", value, false)
}
// SetStatusLeftStyle stores the "status-left-style" session option as string.
// Read it with [SessionOptionValues.StatusLeftStyle] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusLeftStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-left-style", value, false)
}
// SetStatusPosition stores the "status-position" session option as StatusPosition.
// Read it with [SessionOptionValues.StatusPosition] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusPosition(ctx context.Context, value StatusPosition) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-position", value.String(), true)
}
// SetStatusPosition stores the "status-position" session option as StatusPosition.
// Read it with [SessionOptionValues.StatusPosition] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusPosition(ctx context.Context, value StatusPosition) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-position", value.String(), true)
}
// SetStatusRight stores the "status-right" session option as string.
// Read it with [SessionOptionValues.StatusRight] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusRight(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-right", value, false)
}
// SetStatusRight stores the "status-right" session option as string.
// Read it with [SessionOptionValues.StatusRight] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusRight(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-right", value, false)
}
// SetStatusRightLength stores the "status-right-length" session option as int64.
// Read it with [SessionOptionValues.StatusRightLength] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusRightLength(ctx context.Context, value int64) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-right-length", encodeTypedOptionInt64(value), false)
}
// SetStatusRightLength stores the "status-right-length" session option as int64.
// Read it with [SessionOptionValues.StatusRightLength] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusRightLength(ctx context.Context, value int64) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-right-length", encodeTypedOptionInt64(value), false)
}
// SetStatusRightStyle stores the "status-right-style" session option as string.
// Read it with [SessionOptionValues.StatusRightStyle] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusRightStyle(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-right-style", value, false)
}
// SetStatusRightStyle stores the "status-right-style" session option as string.
// Read it with [SessionOptionValues.StatusRightStyle] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusRightStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-right-style", value, false)
}
// SetStatusStyle stores the "status-style" session option as string.
// Read it with [SessionOptionValues.StatusStyle] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetStatusStyle(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-style", value, false)
}
// SetStatusStyle stores the "status-style" session option as string.
// Read it with [SessionOptionValues.StatusStyle] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetStatusStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "status-style", value, false)
}
// SetSynchronizePanes stores the "synchronize-panes" window option as bool.
// Read it with [WindowOptionValues.SynchronizePanes] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetSynchronizePanes(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "synchronize-panes", encodeTypedOptionBool(value), false)
}
// SetSynchronizePanes stores the "synchronize-panes" window option as bool.
// Read it with [WindowOptionValues.SynchronizePanes] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetSynchronizePanes(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "synchronize-panes", encodeTypedOptionBool(value), false)
}
// SetSynchronizePanes stores the "synchronize-panes" pane option as bool.
// Read it with [PaneOptionValues.SynchronizePanes] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetSynchronizePanes(ctx context.Context, value bool) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "synchronize-panes", encodeTypedOptionBool(value), false)
}
// SetTiledLayoutMaxColumns stores the "tiled-layout-max-columns" window option as int64 (tmux 3.6 or later).
// Read it with [WindowOptionValues.TiledLayoutMaxColumns] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetTiledLayoutMaxColumns(ctx context.Context, value int64) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "tiled-layout-max-columns", encodeTypedOptionInt64(value), false)
}
// SetTiledLayoutMaxColumns stores the "tiled-layout-max-columns" window option as int64 (tmux 3.6 or later).
// Read it with [WindowOptionValues.TiledLayoutMaxColumns] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetTiledLayoutMaxColumns(ctx context.Context, value int64) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "tiled-layout-max-columns", encodeTypedOptionInt64(value), false)
}
// SetTreeModePreviewFormat stores the "tree-mode-preview-format" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.TreeModePreviewFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetTreeModePreviewFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "tree-mode-preview-format", value, false)
}
// SetTreeModePreviewFormat stores the "tree-mode-preview-format" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.TreeModePreviewFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetTreeModePreviewFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "tree-mode-preview-format", value, false)
}
// SetTreeModePreviewFormat stores the "tree-mode-preview-format" pane option as string (tmux 3.7 or later).
// Read it with [PaneOptionValues.TreeModePreviewFormat] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetTreeModePreviewFormat(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "tree-mode-preview-format", value, false)
}
// SetTreeModePreviewStyle stores the "tree-mode-preview-style" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.TreeModePreviewStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetTreeModePreviewStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "tree-mode-preview-style", value, false)
}
// SetTreeModePreviewStyle stores the "tree-mode-preview-style" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.TreeModePreviewStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetTreeModePreviewStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "tree-mode-preview-style", value, false)
}
// SetVariationSelectorAlwaysWide stores the "variation-selector-always-wide" server option as bool (tmux 3.6 or later).
// Read it with [ServerOptionValues.VariationSelectorAlwaysWide] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
mfunc (s Server) SetVariationSelectorAlwaysWide(ctx context.Context, value bool) error {
server := s
scope := []string{"-s"}
return setTypedOption(ctx, server, scope, generatedOptionScopeServer, "variation-selector-always-wide", encodeTypedOptionBool(value), false)
}
// SetVisualActivity stores the "visual-activity" session option as VisualActivity.
// Read it with [SessionOptionValues.VisualActivity] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetVisualActivity(ctx context.Context, value VisualActivity) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "visual-activity", value.String(), true)
}
// SetVisualActivity stores the "visual-activity" session option as VisualActivity.
// Read it with [SessionOptionValues.VisualActivity] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetVisualActivity(ctx context.Context, value VisualActivity) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "visual-activity", value.String(), true)
}
// SetVisualBell stores the "visual-bell" session option as VisualBell.
// Read it with [SessionOptionValues.VisualBell] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetVisualBell(ctx context.Context, value VisualBell) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "visual-bell", value.String(), true)
}
// SetVisualBell stores the "visual-bell" session option as VisualBell.
// Read it with [SessionOptionValues.VisualBell] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetVisualBell(ctx context.Context, value VisualBell) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "visual-bell", value.String(), true)
}
// SetVisualSilence stores the "visual-silence" session option as VisualSilence.
// Read it with [SessionOptionValues.VisualSilence] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetVisualSilence(ctx context.Context, value VisualSilence) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "visual-silence", value.String(), true)
}
// SetVisualSilence stores the "visual-silence" session option as VisualSilence.
// Read it with [SessionOptionValues.VisualSilence] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetVisualSilence(ctx context.Context, value VisualSilence) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "visual-silence", value.String(), true)
}
// SetWindowActiveStyle stores the "window-active-style" window option as string.
// Read it with [WindowOptionValues.WindowActiveStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowActiveStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-active-style", value, false)
}
// SetWindowActiveStyle stores the "window-active-style" window option as string.
// Read it with [WindowOptionValues.WindowActiveStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowActiveStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-active-style", value, false)
}
// SetWindowActiveStyle stores the "window-active-style" pane option as string.
// Read it with [PaneOptionValues.WindowActiveStyle] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetWindowActiveStyle(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "window-active-style", value, false)
}
// SetWindowPaneCurrentStatusFormat stores the "window-pane-current-status-format" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.WindowPaneCurrentStatusFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowPaneCurrentStatusFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-pane-current-status-format", value, false)
}
// SetWindowPaneCurrentStatusFormat stores the "window-pane-current-status-format" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.WindowPaneCurrentStatusFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowPaneCurrentStatusFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-pane-current-status-format", value, false)
}
// SetWindowPaneStatusFormat stores the "window-pane-status-format" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.WindowPaneStatusFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowPaneStatusFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-pane-status-format", value, false)
}
// SetWindowPaneStatusFormat stores the "window-pane-status-format" window option as string (tmux 3.7 or later).
// Read it with [WindowOptionValues.WindowPaneStatusFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowPaneStatusFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-pane-status-format", value, false)
}
// SetWindowSize stores the "window-size" window option as WindowSize.
// Read it with [WindowOptionValues.WindowSize] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowSize(ctx context.Context, value WindowSize) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-size", value.String(), true)
}
// SetWindowSize stores the "window-size" window option as WindowSize.
// Read it with [WindowOptionValues.WindowSize] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowSize(ctx context.Context, value WindowSize) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-size", value.String(), true)
}
// SetWindowStatusActivityStyle stores the "window-status-activity-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusActivityStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusActivityStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-activity-style", value, false)
}
// SetWindowStatusActivityStyle stores the "window-status-activity-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusActivityStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusActivityStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-activity-style", value, false)
}
// SetWindowStatusBellStyle stores the "window-status-bell-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusBellStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusBellStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-bell-style", value, false)
}
// SetWindowStatusBellStyle stores the "window-status-bell-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusBellStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusBellStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-bell-style", value, false)
}
// SetWindowStatusCurrentFormat stores the "window-status-current-format" window option as string.
// Read it with [WindowOptionValues.WindowStatusCurrentFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusCurrentFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-current-format", value, false)
}
// SetWindowStatusCurrentFormat stores the "window-status-current-format" window option as string.
// Read it with [WindowOptionValues.WindowStatusCurrentFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusCurrentFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-current-format", value, false)
}
// SetWindowStatusCurrentStyle stores the "window-status-current-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusCurrentStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusCurrentStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-current-style", value, false)
}
// SetWindowStatusCurrentStyle stores the "window-status-current-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusCurrentStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusCurrentStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-current-style", value, false)
}
// SetWindowStatusFormat stores the "window-status-format" window option as string.
// Read it with [WindowOptionValues.WindowStatusFormat] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusFormat(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-format", value, false)
}
// SetWindowStatusFormat stores the "window-status-format" window option as string.
// Read it with [WindowOptionValues.WindowStatusFormat] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusFormat(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-format", value, false)
}
// SetWindowStatusLastStyle stores the "window-status-last-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusLastStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusLastStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-last-style", value, false)
}
// SetWindowStatusLastStyle stores the "window-status-last-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusLastStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusLastStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-last-style", value, false)
}
// SetWindowStatusSeparator stores the "window-status-separator" window option as string.
// Read it with [WindowOptionValues.WindowStatusSeparator] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusSeparator(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-separator", value, false)
}
// SetWindowStatusSeparator stores the "window-status-separator" window option as string.
// Read it with [WindowOptionValues.WindowStatusSeparator] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusSeparator(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-separator", value, false)
}
// SetWindowStatusStyle stores the "window-status-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStatusStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-style", value, false)
}
// SetWindowStatusStyle stores the "window-status-style" window option as string.
// Read it with [WindowOptionValues.WindowStatusStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStatusStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-status-style", value, false)
}
// SetWindowStyle stores the "window-style" window option as string.
// Read it with [WindowOptionValues.WindowStyle] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWindowStyle(ctx context.Context, value string) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-style", value, false)
}
// SetWindowStyle stores the "window-style" window option as string.
// Read it with [WindowOptionValues.WindowStyle] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWindowStyle(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "window-style", value, false)
}
// SetWindowStyle stores the "window-style" pane option as string.
// Read it with [PaneOptionValues.WindowStyle] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
mfunc (p Pane) SetWindowStyle(ctx context.Context, value string) error {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopePane, "window-style", value, false)
}
// SetWordSeparators stores the "word-separators" session option as string.
// Read it with [SessionOptionValues.WordSeparators] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
mfunc (s Session) SetWordSeparators(ctx context.Context, value string) error {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "word-separators", value, false)
}
// SetWordSeparators stores the "word-separators" session option as string.
// Read it with [SessionOptionValues.WordSeparators] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalSessionScope) SetWordSeparators(ctx context.Context, value string) error {
server := s.server
scope := []string{"-g"}
return setTypedOption(ctx, server, scope, generatedOptionScopeSession, "word-separators", value, false)
}
// SetWrapSearch stores the "wrap-search" window option as bool.
// Read it with [WindowOptionValues.WrapSearch] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetWrapSearch(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "wrap-search", encodeTypedOptionBool(value), false)
}
// SetWrapSearch stores the "wrap-search" window option as bool.
// Read it with [WindowOptionValues.WrapSearch] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetWrapSearch(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "wrap-search", encodeTypedOptionBool(value), false)
}
// SetXTermKeys stores the "xterm-keys" window option as bool.
// Read it with [WindowOptionValues.XTermKeys] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
mfunc (w Window) SetXTermKeys(ctx context.Context, value bool) error {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return err
}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "xterm-keys", encodeTypedOptionBool(value), false)
}
// SetXTermKeys stores the "xterm-keys" window option as bool.
// Read it with [WindowOptionValues.XTermKeys] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
mfunc (s GlobalWindowScope) SetXTermKeys(ctx context.Context, value bool) error {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOption(ctx, server, scope, generatedOptionScopeWindow, "xterm-keys", encodeTypedOptionBool(value), false)
}
// SetCodepointWidths replaces the complete "codepoint-widths" server option array with SparseArray[string], preserving holes and empty values (tmux 3.6 or later).
// Read it with [ServerOptionValues.CodepointWidths] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s Server) SetCodepointWidths(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s
scope := []string{"-s"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeServer, "codepoint-widths", value)
}
// SetCommandAlias replaces the complete "command-alias" server option array with SparseArray[string], preserving holes and empty values.
// Read it with [ServerOptionValues.CommandAlias] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s Server) SetCommandAlias(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s
scope := []string{"-s"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeServer, "command-alias", value)
}
// SetPaneColours replaces the complete "pane-colours" window option array with SparseArray[string], preserving holes and empty values.
// Read it with [WindowOptionValues.PaneColours] from [Window.Options]; [Window.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (w Window) SetPaneColours(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server, scope, err := windowOptionRuntimeScope(w)
if err != nil {
return SetArrayResult{}, err
}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeWindow, "pane-colours", value)
}
// SetPaneColours replaces the complete "pane-colours" window option array with SparseArray[string], preserving holes and empty values.
// Read it with [WindowOptionValues.PaneColours] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s GlobalWindowScope) SetPaneColours(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s.server
scope := []string{"-g", "-w"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeWindow, "pane-colours", value)
}
// SetPaneColours replaces the complete "pane-colours" pane option array with SparseArray[string], preserving holes and empty values.
// Read it with [PaneOptionValues.PaneColours] from [Pane.Options]; [Pane.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (p Pane) SetPaneColours(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server, scope, err := paneOptionRuntimeScope(p)
if err != nil {
return SetArrayResult{}, err
}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopePane, "pane-colours", value)
}
// SetStatusFormat replaces the complete "status-format" session option array with SparseArray[string], preserving holes and empty values.
// Read it with [SessionOptionValues.StatusFormat] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s Session) SetStatusFormat(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return SetArrayResult{}, err
}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeSession, "status-format", value)
}
// SetStatusFormat replaces the complete "status-format" session option array with SparseArray[string], preserving holes and empty values.
// Read it with [SessionOptionValues.StatusFormat] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s GlobalSessionScope) SetStatusFormat(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s.server
scope := []string{"-g"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeSession, "status-format", value)
}
// SetTerminalFeatures replaces the complete "terminal-features" server option array with SparseArray[string], preserving holes and empty values.
// Read it with [ServerOptionValues.TerminalFeatures] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s Server) SetTerminalFeatures(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s
scope := []string{"-s"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeServer, "terminal-features", value)
}
// SetTerminalOverrides replaces the complete "terminal-overrides" server option array with SparseArray[string], preserving holes and empty values.
// Read it with [ServerOptionValues.TerminalOverrides] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s Server) SetTerminalOverrides(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s
scope := []string{"-s"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeServer, "terminal-overrides", value)
}
// SetUpdateEnvironment replaces the complete "update-environment" session option array with SparseArray[string], preserving holes and empty values.
// Read it with [SessionOptionValues.UpdateEnvironment] from [Session.Options]; [Session.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s Session) SetUpdateEnvironment(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server, scope, err := sessionOptionRuntimeScope(s)
if err != nil {
return SetArrayResult{}, err
}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeSession, "update-environment", value)
}
// SetUpdateEnvironment replaces the complete "update-environment" session option array with SparseArray[string], preserving holes and empty values.
// Read it with [SessionOptionValues.UpdateEnvironment] from [GlobalSessionScope.Options]; [GlobalSessionScope.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s GlobalSessionScope) SetUpdateEnvironment(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s.server
scope := []string{"-g"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeSession, "update-environment", value)
}
// SetUserKeys replaces the complete "user-keys" server option array with SparseArray[string], preserving holes and empty values.
// Read it with [ServerOptionValues.UserKeys] from [Server.Options]; [Server.UnsetOption] restores inheritance or the global default.
// Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
mfunc (s Server) SetUserKeys(ctx context.Context, value SparseArray[string]) (SetArrayResult, error) {
server := s
scope := []string{"-s"}
return setTypedOptionArray(ctx, server, scope, generatedOptionScopeServer, "user-keys", value)
}