# libtmux.Pane.find_window

- **Module:** libtmux.Pane
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/pane.py#L2175
- **Page:** https://libtmux.org/en/py/latest/reference/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')
```
