-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Description
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Enhance the opencode web GUI's command palette / search dialog (triggered by Cmd+P / file.open) to replicate VSCode's search UI and support content search, not just session titles and file names.
Problem: Today the palette only searches file paths (fuzzy name match) and filters sessions by title/description. Users cannot search inside file contents or chat history.
Proposed changes:
-
VSCode-style search options on the right of the search bar:
- Match Case, Match Whole Word, Use Regular Expression (e.g. Aa / ab| style icons, tooltips on hover).
- A "..." button that expands to files to include and files to exclude (same semantics as VSCode: include = limit to paths, exclude = skip paths).
-
File content search: Wire the existing backend ripgrep endpoint (e.g.
GET /find) to the palette so results show file + line snippets, with the above options (case, whole word, regex) and include/exclude paths applied. -
Chat content search: New backend support to search message/part content (e.g. SQLite scan or FTS) and surface matches in the same dialog, with the same Match Case / Match Whole Word / Regex options where applicable.
Benefits: Aligns web UX with familiar editor search, lets users find content in files and past conversations without leaving the palette.