[PR #11855] feat(app): add project search to command palette #13958

Open
opened 2026-02-16 18:18:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11855

State: open
Merged: No


Summary

Extends the Cmd+P / Ctrl+P command palette to include project search alongside the existing commands, files, and sessions.

Closes #11843

What changed

  • Projects: Shows all open projects with colored avatar, name, and worktree path. Selecting navigates to the project.
  • Results are grouped by category and filtered via fuzzysort.
  • i18n key palette.group.projects added to all 15 language files with native translations.
  • New setting palette.projects (default: true) to toggle project visibility in the palette.

Note: Session search was originally part of this PR but has since been added upstream. This PR has been rebased and narrowed to only add the project search functionality that is still missing from dev.

Files changed

  • packages/app/src/components/dialog-select-file.tsx — Added projectItem, projectList, projectLookup, projects memo, project handling in handleSelect, project Avatar rendering
  • packages/app/src/components/settings-general.tsx — Added toggle UI for "Show projects in command palette"
  • packages/app/src/context/settings.tsx — Added palette.projects setting (boolean, default true)
  • All 15 packages/app/src/i18n/*.ts files — Added palette.group.projects, settings.palette.projects, settings.palette.projects.description

Implementation notes

  • Projects sourced from layout.projects.list() (reactive)
  • server.projects.touch() is called before project navigation to update last-used tracking
  • Fully compatible with the session search that is now in dev
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11855 **State:** open **Merged:** No --- ## Summary Extends the Cmd+P / Ctrl+P command palette to include **project search** alongside the existing commands, files, and sessions. Closes #11843 ## What changed - **Projects**: Shows all open projects with colored avatar, name, and worktree path. Selecting navigates to the project. - Results are grouped by category and filtered via fuzzysort. - i18n key `palette.group.projects` added to all 15 language files with native translations. - New setting `palette.projects` (default: `true`) to toggle project visibility in the palette. > **Note:** Session search was originally part of this PR but has since been added upstream. This PR has been rebased and narrowed to only add the **project search** functionality that is still missing from `dev`. ## Files changed - `packages/app/src/components/dialog-select-file.tsx` — Added `projectItem`, `projectList`, `projectLookup`, `projects` memo, project handling in `handleSelect`, project Avatar rendering - `packages/app/src/components/settings-general.tsx` — Added toggle UI for "Show projects in command palette" - `packages/app/src/context/settings.tsx` — Added `palette.projects` setting (boolean, default `true`) - All 15 `packages/app/src/i18n/*.ts` files — Added `palette.group.projects`, `settings.palette.projects`, `settings.palette.projects.description` ## Implementation notes - Projects sourced from `layout.projects.list()` (reactive) - `server.projects.touch()` is called before project navigation to update last-used tracking - Fully compatible with the session search that is now in `dev`
yindo added the pull-request label 2026-02-16 18:18:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13958