Skip to content

Select the next worktree once a deletion starts - #3

Merged
lperrin merged 2 commits into
mainfrom
select-next-after-delete
Nov 3, 2026
Merged

lperrin merged 2 commits into
mainfrom
select-next-after-delete

Conversation

@lperrin

@lperrin lperrin commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Why

After you confirm a delete, the row being deleted stayed selected. In reverse video, its red deleting… didn't stand out, so it wasn't obvious the deletion had started.

What

When a deletion starts, the selection moves to the next worktree, or to the previous one if the deleted row was last. Rows already being deleted are skipped. The README's paragraph on deleting says so. Version 0.2.1.

Verified by driving wt in a pty on a test repo with three worktrees. When the second row was deleted, the selection moved to the row below. When the last row was deleted, it moved to the row above. Deleting the worktree you're in still takes you to the main checkout. 27 tests and lint pass.

🤖 Generated with Claude Code

lperrin and others added 2 commits November 3, 2026 11:17
The row being deleted stayed selected, in reverse video, so its red
"deleting…" didn't stand out. The selection now moves on to the next
worktree, or the previous one when the deleted row was last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lperrin
lperrin merged commit 71b136e into main Nov 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant