From 5d1e1da45b0b91624afd9abc67498a104ea794ee Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Fri, 30 Sep 2022 22:29:26 +0200 Subject: [PATCH] Renamed "reindexNotes" into "refreshIndex" --- src/components/ModalVault.svelte | 4 ++-- src/notes-index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }