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

tmuxq.Matching

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmuxq
Package
github.com/libtmux/libtmux-go/tmux
Source
tmuxq/filter.go
Matching ( values : []T , filter : Filter[T] ) → ([]T, error)
function [source]
function [source]
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.

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

0 declared, 0 inherited

Esc

Type to search.