wt select
Interactive worktree selector. Browse and switch worktrees with live preview.
Examples
Open the selector:
Preview tabs
Toggle between views with number keys:
- HEAD± — Diff of uncommitted changes
- log — Recent commits; commits already on the default branch have dimmed hashes
- main…± — Diff of changes since the merge-base with the default branch
- remote⇅ — Diff vs upstream tracking branch (ahead/behind)
Keybindings
| Key | Action |
|---|---|
↑/↓ | Navigate worktree list |
Enter | Switch to selected worktree |
Esc | Cancel |
| (type) | Filter worktrees |
1/2/3/4 | Switch preview tab |
Alt-p | Toggle preview panel |
Ctrl-u/Ctrl-d | Scroll preview up/down |
With --branches, branches without worktrees are included — selecting one creates a worktree. This matches wt list --branches.
Configuration
Pager
The preview panel pipes diff output through git's pager (typically less or delta). Override pager behavior in user config:
[]
= "delta --paging=never"
This is useful when the default pager doesn't render correctly in the embedded preview panel.
See also
wt list— Static table view with all worktree metadatawt switch— Direct switching to a known target branch
Command reference
wt select - Interactive worktree selector
Browse and switch worktrees with live preview.
Usage: wt select [OPTIONS]
Options:
--branches
Include branches without worktrees
--remotes
Include remote branches
-h, --help
Print help (see a summary with '-h')
Global Options:
-C <path>
Working directory for this command
--config <path>
User config file path
-v, --verbose...
Show debug info (-v), or also write diagnostic report (-vv)