This commit is contained in:
Simon Cambier
2022-08-26 08:23:58 +02:00
parent d6455eafa7
commit b73c5a9391
23 changed files with 923 additions and 2188 deletions

View File

@@ -63,17 +63,17 @@ export default class OmnisearchPlugin extends Plugin {
this.registerEvent(
this.app.vault.on('create', file => {
addToIndex(file)
}),
})
)
this.registerEvent(
this.app.vault.on('delete', file => {
removeFromIndex(file.path)
}),
})
)
this.registerEvent(
this.app.vault.on('modify', async file => {
addNoteToReindex(file)
}),
})
)
this.registerEvent(
this.app.vault.on('rename', async (file, oldPath) => {
@@ -81,7 +81,7 @@ export default class OmnisearchPlugin extends Plugin {
removeFromIndex(oldPath)
await addToIndex(file)
}
}),
})
)
await initGlobalSearchIndex()