✨ feat: Add global search across all projects (⌘K command palette)#36
Open
fulviofreitas wants to merge 4 commits intothomas-pedersen:mainfrom
Open
✨ feat: Add global search across all projects (⌘K command palette)#36fulviofreitas wants to merge 4 commits intothomas-pedersen:mainfrom
fulviofreitas wants to merge 4 commits intothomas-pedersen:mainfrom
Conversation
✨ New Features: - Command palette style global search (⌘K / Ctrl+K) - Real-time search with debouncing - Filter by All/Ask Logs/Agent Logs - Keyboard navigation support - Shows contextual match snippets 🔧 Improvements: - Updated search API to use new cursorDiskKV data format - Backward compatibility with old ItemTable format - Added @radix-ui/react-dialog for modal support - Added .cursor/ to .gitignore
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.
Hi @thomas-pedersen! 👋
First of all, thank you for creating this fantastic tool! I've been using Cursor Chat Browser daily to review my AI conversations, and it's been incredibly helpful for my workflow.
While using the app, I found myself frequently wanting to search across all my projects at once rather than navigating to each workspace individually. So I built a global search feature that I think could benefit other users too!
✨ What This PR Adds
A command palette-style global search that lets users instantly find any conversation across all their workspaces:
Key Features
⌘K(Mac) /Ctrl+K(Windows/Linux) to open instantly↑/↓to navigate,Enterto open,Escto closeTechnical Improvements
This PR also includes an important fix to the search API:
cursorDiskKVtable where newer Cursor versions store data (keys likecomposerData:*andbubbleId:*)ItemTableformat for older dataFiles Changed
src/components/global-search.tsxsrc/components/ui/dialog.tsxsrc/components/navbar.tsxsrc/app/api/search/route.tsNew Dependency
@radix-ui/react-dialog- For the modal dialog (consistent with your existing Radix UI usage)🧪 Testing
I've tested this on:
💭 Why I Think This Would Be Valuable
I'd be happy to make any adjustments based on your feedback! Whether it's code style changes, feature modifications, or anything else—just let me know.
Thanks again for your work on this project! 🙏
Best regards,
Fulvio