Skip to content

Global command palette#204

Merged
bmdavis419 merged 2 commits into
mainfrom
cursor/global-command-palette-2d20
Mar 2, 2026
Merged

Global command palette#204
bmdavis419 merged 2 commits into
mainfrom
cursor/global-command-palette-2d20

Conversation

@bmdavis419
Copy link
Copy Markdown
Collaborator

@bmdavis419 bmdavis419 commented Mar 2, 2026

Add a command palette for quick access to search, actions, and navigation, accessible via Cmd+K or the sidebar.


Open in Web Open in Cursor 

Greptile Summary

Added a global command palette accessible via Cmd+K for quick access to threads, actions, and navigation.

Key changes:

  • New CommandPalette.svelte component with search, keyboard navigation, and quick actions
  • Enhanced AddResourceModal.svelte to support npm packages in addition to git repositories
  • Integrated command palette into app layout with global Cmd+K shortcut
  • Added search button in sidebar with ⌘K indicator

Minor consideration:

  • Pressing Cmd+K while AddResourceModal is open will open the command palette on top of it, creating overlapping modals

Confidence Score: 4/5

  • Safe to merge with minor UX consideration
  • Well-implemented feature with proper keyboard handling and accessibility. Minor UX concern about overlapping modals doesn't impact functionality
  • No files require special attention

Important Files Changed

Filename Overview
apps/web/src/lib/components/CommandPalette.svelte New command palette component with keyboard navigation, search, and quick actions
apps/web/src/routes/app/+layout.svelte Added global Cmd+K handler and integrated CommandPalette and AddResourceModal
apps/web/src/lib/components/Sidebar.svelte Added search button with Cmd+K shortcut to trigger command palette
apps/web/src/lib/components/AddResourceModal.svelte Enhanced to support npm packages, improved keyboard handling, changed to use action API

Last reviewed commit: 67cdab5

- New CommandPalette.svelte component with thread search, actions, navigation
- Keyboard navigation (arrows/Enter/Escape), auto-focus input on open
- Features: search threads, new thread, add resource, toggle theme, nav shortcuts
- Sidebar search input now opens command palette with ⌘K hint
- Global Cmd+K shortcut wired in app layout
- AddResourceModal accessible from palette

Co-authored-by: Ben Davis <bmdavis419@users.noreply.github.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Mar 2, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@bmdavis419 bmdavis419 merged commit a1b2ae8 into main Mar 2, 2026
2 of 4 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.

2 participants