WIP indexing non-existing docs

This commit is contained in:
Simon Cambier
2024-05-26 18:05:10 +02:00
parent 85b7810d07
commit 0b70cbeb16
3 changed files with 18 additions and 14 deletions

View File

@@ -199,12 +199,15 @@ export class CacheManager {
// Look for links that lead to non-existing files,
// and add them to the index.
if (metadata) {
// const nonExisting = getNonExistingNotes(this.plugin.app, file, metadata)
// for (const name of nonExisting.filter(
// o => !this.getLiveDocument(o)
// )) {
// NotesIndex.addNonExistingToIndex(name, file.path)
// }
const nonExisting = getNonExistingNotes(this.plugin.app, file, metadata)
for (const name of nonExisting.filter(o => !this.documents.has(o))) {
const doc =
this.plugin.notesIndexer.generateIndexableNonexistingDocument(
name,
file.path
)
// TODO: index non-existing note
}
// EXCALIDRAW
// Remove the json code