Skip to main content
Back to Commands
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

FlagDescription
-sStart with sessions collapsed (show sessions only)
-wStart with windows collapsed
-ZZoom the pane while the tree is open
-O sort-orderSort order: 'index', 'name', or 'activity'
-f filterOnly show items matching a filter format

Examples

Open the session/window tree

bash
tmux choose-tree

Open showing sessions only

bash
tmux choose-tree -s

Bind a zoomed window picker

bash
bind w choose-tree -Zw

Default 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