#115 - Added a setting to re-execute the previous query when opening Omnisearch

This commit is contained in:
Simon Cambier
2022-10-24 07:01:25 +02:00
parent 6af0ad9178
commit 6d73d8fa7c
2 changed files with 20 additions and 2 deletions

View File

@@ -42,7 +42,9 @@
eventBus.on('vault', 'prev-search-history', prevSearchHistory)
eventBus.on('vault', 'next-search-history', nextSearchHistory)
await NotesIndex.refreshIndex()
previousQuery = (await cacheManager.getSearchHistory())[0]
if (settings.showPreviousQueryResults) {
previousQuery = (await cacheManager.getSearchHistory())[0]
}
})
onDestroy(() => {