Refactored relevant methods to SearchHistory

This commit is contained in:
Simon Cambier
2024-10-13 17:49:06 +02:00
parent 973b632763
commit e2962ec021
6 changed files with 46 additions and 37 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ export class OmnisearchVaultModal extends OmnisearchModal {
.getActiveViewOfType(MarkdownView)
?.editor.getSelection()
plugin.cacheManager.getSearchHistory().then(history => {
plugin.searchHistory.getHistory().then(history => {
// Previously searched query (if enabled in settings)
const previous = plugin.settings.showPreviousQueryResults
? history[0]