# tmux.Pane.ChooseTree

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/pane_modes.go#L198
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-pane-choosetree/

```
tmux.Pane.ChooseTree(ctx: context.Context, request: ChooseTreeRequest) -> error
```

ChooseTree enters tmux's interactive session, window, and pane chooser using the receiver's exact linked target. It requires an attached client. Format and Filter are tmux expressions; neither is interpreted by a shell. Unsupported sort values fail before execution. Only stderr produces a redacted [CommandError]; transport errors may leave tree mode active.
