Merge branch 'master' into feature/25-search-filters

This commit is contained in:
Simon Cambier
2022-04-28 19:35:00 +02:00
8 changed files with 53 additions and 53 deletions

View File

@@ -28,7 +28,9 @@ let selectedIndex = 0
let note: ResultNote | null = null
onMount(() => {
searchQuery = lastSearch
if (lastSearch && !searchQuery) {
searchQuery = lastSearch
}
eventBus.disable("vault")
eventBus.on("infile", "enter", openSelection)
@@ -61,7 +63,7 @@ $: {
}
/**
* Group together close
* Group together close matches to reduce the number of results
*/
function getGroups(matches: SearchMatch[]): SearchMatch[][] {
const groups: SearchMatch[][] = []