Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-go latest

Matching

Matching returns a fresh slice of shallow copies for values that filter accepts, retaining their source order, and reports the one error a filter can have rather than leaving it for the caller to unpack first. It evaluates every input value, so a no-match result is an empty slice.

Source and package
Qualified name
tmuxq.Matching
Package
tmuxq
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmuxq/filter.go
func Matching[T any]( values []T, filter Filter[T], ) ([]T, error)

Description#

active, err := tmuxq.Matching(snapshot.Panes(), tmux.PaneActiveIs(true))
Type parameters
Parameters

Guides#

Pages that discuss Matching.

Esc

Type to search.

Reference previewOpen reference