feat: add search/filter to Projects tab in TUI#39
Merged
Conversation
Implements issue #35 - press '/' in the Projects tab to enter search mode. Type to filter projects by name (case-insensitive substring match). Backspace removes last character, Ctrl+U clears the query, Enter confirms and exits search mode keeping the filter, Esc clears and restores the full list. - Add searchActive/searchQuery fields to Model struct - Disable list built-in filter; implement custom search handler - Show live search input in status bar with cursor indicator - Show context-specific help when search mode is active
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe PR introduces a search feature for the Projects tab in the TUI, allowing users to press "/" to activate search mode and filter projects by name in real-time. New state flags manage the search lifecycle, and helper methods handle incremental filtering and input processing. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/key to enter search mode in the Projects tabKey Bindings
/BackspaceCtrl+UEnterEscTabTest plan
codes), navigate to Projects tab/— status bar shows/ █cursorBackspace— last character removed, list updatesEsc— full list restored, search bar disappears/, type query, pressEnter— exits search mode, filter remains/while right panel is focused — should not activate searchTabduring search — clears search and switches tabCloses #35
Summary by CodeRabbit