Skip to content

Provide picker for remove just like switch with no args #4635

Closed as not planned

Description

@mcascone

I love the interactive picker when using wt switch with no params. Every time i need to delete a worktree, i find myself wishing the same mechanism existed - just run wt remove and get the picker. I think this would be a lot safer and intuitive than the existing mechanism - which i only just learned about from the "potential duplicate" warning when entering this issue, of #1251 (comment). And of course easier than running wt list, copying the wt you want, then wt remove <paste>

Activity

  1. worktrunk-bot commented on Oct 30, 2026

    @worktrunk-bot
    Collaborator

    Alt-x in the wt switch picker removes a selected worktree, but your request for a picker opened directly by wt remove is distinct. Today, bare wt remove targets the current worktree, so using it to open a picker would change an existing command behavior. #1251 proposed both approaches; #1253 implemented the shortcut. A maintainer needs to decide how a dedicated remove picker should be invoked. The unclear success feedback you noticed with Alt-x is tracked separately in #4636.

  2. max-sixty commented on Nov 5, 2026

    @max-sixty
    Owner

    Closing: Alt-x in the wt switch picker removes the selected worktree, and bare wt remove means the current worktree, so a picker there would change what it does today. @worktrunk-bot please add a line to wt remove's help pointing at Alt-x.

    This was written by Claude Code on behalf of max-sixty

  3. worktrunk-bot commented on Nov 5, 2026

    @worktrunk-bot
    Collaborator

    Opened #4703, which adds a line to wt remove --help pointing at Alt-x in the wt switch picker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions