-
Notifications
You must be signed in to change notification settings - Fork 131
feat: add interactive picker #468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Since |
| layout_span(layout, (state.prompt_text.as_ref().into(), prompt_style)); | ||
| layout_span(layout, (" › ".into(), Style::new().cyan().dim())); | ||
| layout_span(layout, (state.input_state.value().into(), Style::new())); | ||
| layout_span(layout, (CARET.into(), Style::new())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to change the caret shape to indicate that it is in input mode.
305af73 to
f0d61e0
Compare
1cb919e to
cc0754c
Compare
Testing NoteThis PR adds the picker component itself, but it's not integrated into any operations yet. To test the picker functionality in action, please check out #470 which converts branch operations to use this picker: gh pr checkout 470
cargo runThen try branch operations like:
You'll be able to see the fuzzy filtering, navigation, and selection in action. |
Implement an interactive fuzzy finder picker component: - Fuzzy matching with real-time filtering - Keyboard navigation (↓/↑, Ctrl-n/p) - Select with Enter, cancel with Esc/Ctrl-c - Visual highlighting of matched characters Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
cc0754c to
948ad2d
Compare
|
I just wanted to leave some answer at least. I'm a bit busy with other things, but I think this (and the search functionality too) are nice additions to Gitu. I'll try find some time to review and test this properly soon |
Summary
This PR adds an interactive fuzzy finder picker component for branch and commit selection:
Implementation Details
pickermodule with fuzzy matching logicui/pickerfor rendering the picker interfaceTest Plan
🤖 Generated with Claude Code