[PR #6940] feat: improve directory search with path completion and subdirectory listing #12169

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

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

State: open
Merged: No


Summary

Improves the 'Open project' dialog search functionality to support direct path typing and dynamic subdirectory listing.

Changes

  • Frontend: Transform search results to match user input format (~/... or absolute paths)
  • Frontend: Add skipClientFilter prop to skip client-side fuzzy filtering for async searches
  • Backend: Accept directory parameter and dynamically list subdirectories when typing paths
  • Backend: Check disk for paths beyond pre-scanned depth

Problem Solved

Previously only scanned 2 levels deep from home. Now nested projects like ~/projects/hindsight/dev are discoverable by typing the path directly or browsing subdirectories.

Testing

  • Typing ~/projects/hindsight shows directory and its subdirectories
  • Typing ~/projects/hindsight/dev finds level 3+ directories
  • Absolute paths work correctly
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6940 **State:** open **Merged:** No --- ## Summary Improves the 'Open project' dialog search functionality to support direct path typing and dynamic subdirectory listing. ## Changes - Frontend: Transform search results to match user input format (~/... or absolute paths) - Frontend: Add skipClientFilter prop to skip client-side fuzzy filtering for async searches - Backend: Accept directory parameter and dynamically list subdirectories when typing paths - Backend: Check disk for paths beyond pre-scanned depth ## Problem Solved Previously only scanned 2 levels deep from home. Now nested projects like ~/projects/hindsight/dev are discoverable by typing the path directly or browsing subdirectories. ## Testing - Typing ~/projects/hindsight shows directory and its subdirectories - Typing ~/projects/hindsight/dev finds level 3+ directories - Absolute paths work correctly
yindo added the pull-request label 2026-02-16 18:17:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12169