Removed modal from stores

This commit is contained in:
Simon Cambier
2022-04-20 08:38:16 +02:00
parent 035d4ff957
commit 359292de5c
4 changed files with 32 additions and 24 deletions

View File

@@ -1,8 +1,6 @@
import type { TFile } from 'obsidian'
import { get, writable } from 'svelte/store'
import type { IndexedNote, ResultNote } from './globals'
import type { IndexedNote } from './globals'
import type OmnisearchPlugin from './main'
import type { OmnisearchModal } from './modal'
function createIndexedNotes() {
const { subscribe, set, update } = writable<Record<string, IndexedNote>>({})
@@ -32,11 +30,6 @@ function createIndexedNotes() {
*/
export const plugin = writable<OmnisearchPlugin>()
/**
* A reference to the modal instance
*/
export const modal = writable<OmnisearchModal>()
/**
* The entire list of indexed notes, constantly kept up-to-date.
*/