Skip to content

Conversation

@samhoooo
Copy link
Contributor

@samhoooo samhoooo commented Mar 4, 2025

Closes #1025

Show autocomplete suggestions for File Query Filters on Obsidian App

Changes

  • When you type in search modal, and matches the pattern file:, you should see list of all files in vault and non-vault
  • This list is filtered down as you type more letters

Technical Details

  • Added file filter mode (isFileFilterMode state) to filter search results by specific files
  • Updated getSuggestions() function to search file from vault and non-vault via khoj backend.
  • Updated the selection behavior to handle both file selection and search result selection

Testing

  • Test deleting user messages
  • Test deleting Khoj responses
  • Verify both messages in a turn are removed
  • Verify deletion persists after page refresh
  • Verify no delete button on setup hint
  • Verify no delete button on error message
  • Verify no delete button on conversation starter
  • Test error cases (network failure, etc)

Screensort

demo.mov

@debanjum debanjum force-pushed the master branch 2 times, most recently from 535f353 to 0f0cfba Compare July 9, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show autocomplete suggestions for File Query Filters in Search on Obsidian App

1 participant