# tmux.Window.SearchPanes

- **Module:** tmux.Window
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/search.go#L144
- **Page:** https://libtmux.org/reference/go/tmux-window-searchpanes/

```
tmux.Window.SearchPanes(ctx: context.Context, filter: *TmuxFilter) -> ([]Pane, error)
```

SearchPanes returns this window's pane views selected by tmux's live -f expression. A nil filter omits -f and a nonnil empty filter sends an explicit expression. Stable session and window identities limit the projection.
