Skip to content

Add unified search interface (Fuzzy Finder) #96

Description

@lambdalisue

Summary

Implement a unified search interface (Fuzzy Finder) that integrates the existing in-file search with a new directory-wide search.

Proposed Behavior

Fuzzy Finder Panel

  • Opens as an overlay at the top-center of the window (Raycast/VS Code command palette style)
  • Cmd+F → Opens with "In current file" mode selected
  • Cmd+Shift+F → Opens with "In current directory" mode selected
  • Mode switch component to toggle between the two modes
  • Real-time fuzzy matching results list below the input field (scored and ranked)

In current file mode

  • Fuzzy search within current file content
  • Highlights matches in the content viewer
  • Results shown in ranked list below the input

In current directory mode

  • Fuzzy search across all files under the sidebar root directory
  • Respects .gitignore
  • Results show file path + line number + match context
  • Selecting a result opens the file and scrolls to the matched line

Escape behavior

  • Closes the Fuzzy Finder panel
  • Search results are preserved and viewable in the right sidebar Search tab

Right sidebar Search tab

  • Shows global results (not limited to current tab)
  • Includes results from both "In current file" and "In current directory" modes
  • Clicking a result opens the target file and scrolls to the matched line

Pin

  • Pin functionality available from the Fuzzy Finder (same as current behavior)
  • Pinned searches persist across sessions

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions