# LibTmux.onlymatch

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/criteria.jl#L274
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-onlymatch/

```
onlymatch(q, items)
```

## Methods

Return exactly one match, stopping after a second match. Selection criteria preflight coverage first. This function does not acquire or refresh data; ordinary caller predicates retain their own effects.

```julia
onlymatch(q, items)
```

## Parameters

- `q` (`Any`)
- `items` (`Any`)
