Documentation ¶
Overview ¶
Package tmuxfmt constructs tmux FORMATS compatible strings.
See http://man.openbsd.org/OpenBSD-current/man1/tmux.1#FORMATS for a specification of the format of these strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryOp ¶
type BinaryOp int
BinaryOp is a binary operation.
type Capturer ¶
type Capturer struct {
// contains filtered or unexported fields
}
Capturer captures the output of tmuxfmt expressions into Go values.
func (*Capturer) BoolVar ¶
BoolVar specifies that the output of the provided expression should be parsed as a boolean and fill this boolean pointer.
func (*Capturer) IntVar ¶
IntVar specifies that the output of the provided expression should be parsed as an integer and fill this integer pointer.
func (*Capturer) Prepare ¶
Prepare prepares the specified expressions into a tmuxfmt message. The returned capture function will parse the resultant text and fill the previously recorded pointers.
type Expr ¶
type Expr interface {
// contains filtered or unexported methods
}
Expr is the base interface for expressions accepted by the tmux message format.
type String ¶
type String string // must not contain tabs
String is a string literal in an expression.
value
type Ternary ¶
Ternary is a conditional operator that evaluates the first expression and returns either the second or the third expression based on whether it's true.
#{?cond,then,else}