# io.github.libtmux.FindSpec.FindSpec

- **Module:** io.github.libtmux.FindSpec
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/FindSpec.java#L20
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-findspec-findspec/

What to look for when opening the window browser narrowed to a match.

<p>The shape {@link CaptureSpec} uses. tmux looks in a window's name, its title and its visible
content unless told otherwise; naming any of them narrows it to those.

<pre>{@code
pane.findWindow(f -> f.matching("build").inName());
pane.findWindow(f -> f.matching("^err").asRegex().ignoringCase());
}</pre>

<p>Every flag below exists on each supported release, so nothing here is version-gated.

## Members

- `builder` (method) — A builder that looks everywhere tmux looks by default.
- `match` (method) — What is being looked for.
- `argv` (method)
- `Builder` (class) — Collects what to look for, and where.
