Skip to content

feat(tui): add search filtering to RebaseBranchPicker modal#45

Merged
HonestMajority merged 1 commit intomainfrom
search-branch-for-rebase
Feb 24, 2026
Merged

feat(tui): add search filtering to RebaseBranchPicker modal#45
HonestMajority merged 1 commit intomainfrom
search-branch-for-rebase

Conversation

@HonestMajority
Copy link
Copy Markdown
Owner

Adds type-to-filter search to the RebaseBranchPicker modal, following the same pattern as the existing archive search. When a repo has many branches, users can now type to narrow the list instead of scrolling through every branch with arrow keys.

  • New rebase_branch_search TextArea captures typed characters for case-insensitive, space-separated substring matching against branch names
  • Arrow keys and Ctrl+j/k navigate filtered results (bare j/k now feed into the search input)
  • Matching segments are highlighted in yellow/bold via highlight_segments()
  • Rendering uses a 3-chunk layout (header, filter input, filtered branch list) with a count in the list title
  • Status bar hints updated to reflect the new interaction model

🤖 Generated with Claude Code

Add TextArea-based substring search to the branch picker, matching
the existing archive search pattern. Users can now type to filter
branches, with matching segments highlighted in yellow/bold.

- Add rebase_branch_search TextArea field and filtered_indices method
- Rewrite event handler: typed chars go to search, arrow keys navigate
- Rewrite renderer: 3-chunk layout with filter input and highlights
- Update status bar hints to reflect new interaction model

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HonestMajority HonestMajority merged commit 5dd2b82 into main Feb 24, 2026
1 check passed
@HonestMajority HonestMajority deleted the search-branch-for-rebase branch February 24, 2026 11:54
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