Skip to content

[FEATURE]: VSCode-style search in web command palette (file + chat content) #14708

@wufei-png

Description

@wufei-png
  • 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:

  1. 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).
  2. 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.

  3. 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.

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions