wt select

Interactive worktree picker with live preview. Navigate worktrees with keyboard shortcuts and press Enter to switch.

wt select demo

Examples

Open the selector:

wt select

Preview tabs

Toggle between views with number keys:

  1. HEAD± — Diff of uncommitted changes
  2. log — Recent commits; commits already on the default branch have dimmed hashes
  3. main…± — Diff of changes since the merge-base with the default branch

Keybindings

KeyAction
/Navigate worktree list
EnterSwitch to selected worktree
EscCancel
(type)Filter worktrees
1/2/3Switch preview tab
Alt-pToggle preview panel
Ctrl-u/Ctrl-dScroll preview up/down

Branches without worktrees are included — selecting one creates a worktree. (wt list requires --branches to show them.)

See also

Command reference

wt select - Interactive worktree selector

Toggle preview tabs with 1/2/3 keys. Toggle preview visibility with alt-p.

Usage: wt select [OPTIONS]

Options:
  -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 commands and debug info