Window ManagementPrefix + s (sessions), Prefix + w (windows)
choose-tree
Open an interactive tree of sessions, windows, and panes to preview and choose one. This is the picker behind the default Prefix + s (sessions) and Prefix + w (windows) bindings.
Synopsis
bash
tmux choose-tree [-GNrswyZ] [-F format] [-f filter] [-K key-format] [-O sort-order] [-t target-pane] [template]Options
| Flag | Description |
|---|---|
| -s | Start with sessions collapsed (show sessions only) |
| -w | Start with windows collapsed |
| -Z | Zoom the pane while the tree is open |
| -O sort-order | Sort order: 'index', 'name', or 'activity' |
| -f filter | Only show items matching a filter format |
Examples
Open the session/window tree
bash
tmux choose-treeOpen showing sessions only
bash
tmux choose-tree -sBind a zoomed window picker
bash
bind w choose-tree -ZwDefault Keybinding
Prefix + s (sessions), Prefix + w (windows)
Default prefix is Ctrl+b
Pro Tips
- •Type to filter, then press Enter to select
- •Use O to change the sort order inside the tree