# LibTmux::Async::Server#search_panes

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/server.rb#L343
- **Public owner:** LibTmux::Server#search_panes
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-async-server-search_panes/

```
def search_panes: (
  ?where: untyped,
  ?pushdown: ::Symbol,
  **untyped
) -> ::LibTmux::Selection[::LibTmux::PaneSnapshot]
```

Behavior: Source query execution.

Behavior contract: Source query execution.

## Parameters

- `where` (`untyped`)
- `pushdown` (`::Symbol`)
- `kwargs` (`untyped`)

## tmux command

The tmux commands behind `search_panes`.

- [`list-panes`](/en/tmux/latest/manual/list-panes/) `-a` server scope, [`cmd_list_panes_server`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/) (source: `gems/libtmux/lib/libtmux/capture.rb:93`)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_list_panes_entry`](/en/tmux/latest/reference/c-variable-cmd_list_panes_entry/) (attribute)
- [`cmd_list_panes_server`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/) (function)
