mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
## Description Added file path autocompletion to enhance the search experience in Khoj. Users can now easily search for specific files by typing "file:" followed by the file name, with real-time suggestions appearing as they type. ## Changes - Added new API endpoint `/api/file-suggestions` to get file path suggestions - Enhanced search UI with dropdown suggestions for file paths - Implemented debounced search to optimize API calls - Added keyboard (Enter) and mouse click support for selecting suggestions ## Features - Type "file:" to trigger file path suggestions - Real-time filtering of suggestions as you type - Top 10 alphabetically sorted suggestions - Case-insensitive matching - Keyboard and mouse interaction support - Clear visual feedback with a dropdown UI