# server.interactive.Server.find_window

- **Module:** server.interactive.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server/interactive.rs#L167
- **Page:** https://libtmux.org/reference/rs/server-interactive-server-find_window/

```
server.interactive.Server.find_window(self, client: Option<&Client>, search: &str) -> Result<(), Error>
```

Open tmux's window finder for a search string.

This is separate from [`Server::choose`] because it needs something to
search for, where the other choosers list what already exists. Like them
it opens in a pane rather than on a client, so it needs no client and
leaves the pane in `tree-mode` on a server nothing is attached to.

# Errors

Returns [`Error::ServerMismatch`] when the client belongs to another
server, or an error when tmux refuses the command. A missing client is
not one: this does not need one.
