Squashed some bugs related to non-existent notes indexing

This commit is contained in:
Simon Cambier
2022-05-18 17:51:32 +02:00
parent 3faf6b53a0
commit 1e3a9d001f
4 changed files with 26 additions and 7 deletions

View File

@@ -1,6 +1,5 @@
import { Plugin, TFile } from 'obsidian'
import {
addNonExistingToIndex,
addToIndex,
initGlobalSearchIndex,
removeFromIndex,
@@ -40,8 +39,6 @@ export default class OmnisearchPlugin extends Plugin {
this.registerEvent(
this.app.vault.on('delete', file => {
removeFromIndex(file.path)
// Re-index the note as non-existing file
addNonExistingToIndex(file.name)
}),
)
this.registerEvent(