diff --git a/src/components/ModalVault.svelte b/src/components/ModalVault.svelte index fdf939f..4f719be 100644 --- a/src/components/ModalVault.svelte +++ b/src/components/ModalVault.svelte @@ -12,7 +12,7 @@ import { Query } from 'src/query' import { saveSearchHistory, searchHistory } from 'src/search-history' import { settings } from '../settings' - import { reindexNotes } from '../notes-index' + import { refreshIndex } from '../notes-index' export let modal: OmnisearchVaultModal let selectedIndex = 0 @@ -29,7 +29,7 @@ } onMount(async () => { - await reindexNotes() + await refreshIndex() searchQuery = searchHistory[historySearchIndex] eventBus.enable('vault') eventBus.on('vault', 'enter', openNoteAndCloseModal) diff --git a/src/notes-index.ts b/src/notes-index.ts index ace4e6b..4b57ae8 100644 --- a/src/notes-index.ts +++ b/src/notes-index.ts @@ -154,7 +154,7 @@ export function addNoteToReindex(note: TAbstractFile): void { notesToReindex.add(note) } -export async function reindexNotes(): Promise { +export async function refreshIndex(): Promise { if (settings.showIndexingNotices && notesToReindex.size > 0) { new Notice(`Omnisearch - Reindexing ${notesToReindex.size} notes`, 2000) }