feat: add non-markdown files to metadata endpoints
- Added support for non-markdown files (images, PDFs, code, etc) in vault metadata endpoints - Implemented filesystem scanning for non-markdown files with configurable extension whitelist - Added deduplication by file path to prevent duplicates between Meilisearch and filesystem - Enhanced folder filtering and kind filtering to properly handle non-markdown files - Added validation to remove stale entries not present on disk - Improved logging to track
This commit is contained in:
Vendored
+27
-23
@@ -4,19 +4,21 @@
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "511c66a5c96502b2",
|
||||
"id": "8fed617eb7df1a3f",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "8309e5042a8fb85c",
|
||||
"id": "2e9abbba0bbc33e1",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "excalidraw",
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "dessin.excalidraw.md"
|
||||
"file": "Allo-3/Nouveau-markdown.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "excalidraw-icon",
|
||||
"title": "dessin.excalidraw"
|
||||
"icon": "lucide-file",
|
||||
"title": "Nouveau-markdown"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -76,7 +78,7 @@
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 394.5
|
||||
"width": 225.5
|
||||
},
|
||||
"right": {
|
||||
"id": "3932036feebc690d",
|
||||
@@ -176,9 +178,26 @@
|
||||
"obsidian-excalidraw-plugin:New drawing": false
|
||||
}
|
||||
},
|
||||
"active": "8309e5042a8fb85c",
|
||||
"active": "2e9abbba0bbc33e1",
|
||||
"lastOpenFiles": [
|
||||
"test-regular.md.bak",
|
||||
"test-task.md.bak",
|
||||
"test-favorite.md.bak",
|
||||
"test-template.md.bak",
|
||||
"test-regular.md",
|
||||
"test-task.md",
|
||||
"test-template.md",
|
||||
"test-favorite.md",
|
||||
"mixe/Dessin-02.png",
|
||||
"Allo-3/page test.md",
|
||||
"titi/Nouveau-markdown.md",
|
||||
"Allo-3/Nouveau-markdown.md.tmp",
|
||||
"Allo-3/Nouveau-markdown.md.bak",
|
||||
"Allo-3/Nouveau-markdown.md",
|
||||
"tata/test2.md",
|
||||
"dessin.excalidraw.md",
|
||||
"toto/test/Nouvelle note 2 copy.md",
|
||||
"titi/92284.pdf",
|
||||
"Dessin-02.png",
|
||||
"mixe/Relaxing Music relax music music _hls-480_.mp4",
|
||||
"Dessin-02.excalidraw.md",
|
||||
@@ -188,19 +207,13 @@
|
||||
"mixe/ThinkBook_16_G7_ARP_Spec.pdf",
|
||||
"mixe/Claude_ObsiViewer_V1.png",
|
||||
"mixe/image_no_bg_clean.svg",
|
||||
"mixe/dessin.json",
|
||||
"mixe",
|
||||
"New folder",
|
||||
"Drawing-20251028-1452.png",
|
||||
"Drawing-20251028-1452.excalidraw.md.bak",
|
||||
"dessin.svg",
|
||||
"dessin.png",
|
||||
"dessin.excalidraw.md.bak",
|
||||
"dessin_05.svg",
|
||||
"dessin_05.png",
|
||||
"dessin_05.excalidraw.md",
|
||||
"dessin_03.excalidraw.md",
|
||||
"dessin_05.excalidraw.md.bak",
|
||||
"dessin_04.excalidraw.md",
|
||||
"dessin-002.excalidraw.md",
|
||||
"Dessin_001.excalidraw.md",
|
||||
@@ -212,15 +225,6 @@
|
||||
"Drawing-20251027-2201.excalidraw.md",
|
||||
"Dessin-03.md.excalidraw.md",
|
||||
"Dessin-01.excalidraw.md",
|
||||
"Drawing 2025-10-27 19.22.35.excalidraw.md",
|
||||
"Nouveau-markdown.md",
|
||||
"Drawing-20251027-1922.excalidraw.md",
|
||||
"Nouvelle note 16.md",
|
||||
"Dessin.excalidraw.md",
|
||||
"Dessin.excalidraw.restored.md",
|
||||
"HOME.md",
|
||||
"Drawing-20251027-1914.excalidraw.md",
|
||||
"Drawing-20251027-1705.excalidraw.md",
|
||||
"Untitled.canvas"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user