TmuxFilter
TmuxFilter is a raw tmux -f format expression. It is distinct from the generated local filter structs and is evaluated only by tmux. A nil filter omits -f; a nonnil empty filter sends an explicit empty expression.
Source and package
- Qualified name
-
tmux.Tmux Filter - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_buffers.go
-
Description#
The expression is tmux's own, so it is written the way tmux's FORMATS section describes rather than built from Go values:
active := tmux.TmuxFilter("#{==:#{window_active},1}")windows, err := session.SearchWindows(ctx, &active)tmux evaluates this while listing. Generated model filters run in Go after materialization.
revive:disable-next-line:exported TmuxFilter preserves tmux vocabulary beside local model filters.
Guides#
Pages that discuss TmuxFilter.
- Concepts
- Guides