Refactored events to use a small global event bus

This commit is contained in:
Simon Cambier
2022-04-22 22:29:52 +02:00
parent acece86ee3
commit 330df899a0
11 changed files with 104 additions and 58 deletions

View File

@@ -6,7 +6,6 @@ import {
type ResultNote,
type SearchMatch,
} from './globals'
import { get } from 'svelte/store'
import { extractHeadingsFromCache, stringsToRegex, wait } from './utils'
let minisearchInstance: MiniSearch<IndexedNote>