mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Use Magika to more robustly identify text files to send for indexing
- `file-type' doesn't handle mis-labelled files or files without extensions well - Only show supported file types in file selector dialog on Desktop app Use Magika to get list of text file extensions. Combine with other supported extensions to get complete list of supported file extensions. Use it to limit selectable files in the File Open dialog. Note: Folder selector will index text files with no extensions as well
This commit is contained in:
@@ -20,6 +20,6 @@
|
||||
"axios": "^1.6.4",
|
||||
"cron": "^2.4.3",
|
||||
"electron-store": "^8.1.0",
|
||||
"file-type": "^16.2.0"
|
||||
"magika": "^0.2.13"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user