Re-trigger the search when the query or singleFileSearch change

This commit is contained in:
Simon Cambier
2022-04-18 10:59:09 +02:00
parent 6cb113b87e
commit 3168a89070
4 changed files with 14 additions and 18 deletions

View File

@@ -1,18 +1,9 @@
<script lang="ts">
import { onMount, tick } from "svelte"
import CmpInput from "./CmpInput.svelte"
import CmpNoteInternalResult from "./CmpInfileResult.svelte"
import CmpNoteResult from "./CmpNoteResult.svelte"
import type { ResultNote } from "./globals"
import { openNote } from "./notes"
import { getSuggestions } from "./search"
import {
inFileSearch,
modal,
plugin,
resultNotes,
searchQuery,
selectedNote,
} from "./stores"
$: firstResult = $resultNotes[0]