# libtmux.Pane.find_window

- **Module:** libtmux.Pane
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/pane.py#L2175
- **Page:** https://libtmux.org/reference/py/libtmux-pane-find_window/

```
libtmux.Pane.find_window(self, match_string: str, match_content: bool | None = None, case_insensitive: bool | None = None, match_name: bool | None = None, regex: bool | None = None, match_title: bool | None = None) -> None
```

Search for a window matching a string via ``$ tmux find-window``.

Opens a choose-tree filtered to matching windows.

## Parameters

- `self`
- `match_string` (str) — String to search for in window names, titles, and content.
- `match_content` (bool | None) — Match visible pane content (``-C`` flag).
- `case_insensitive` (bool | None) — Case-insensitive matching (``-i`` flag).
- `match_name` (bool | None) — Match window name only (``-N`` flag).
- `regex` (bool | None) — Treat match string as a regex (``-r`` flag).
- `match_title` (bool | None) — Match pane title (``-T`` flag).

## Example

```python
>>> pane.find_window('sh')
```
