From 2b52e6934ee8f9d9570ecb60878eb01416c0084c Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Sat, 2 Dec 2023 13:28:44 +0100 Subject: [PATCH 1/2] 1.20.0-beta.1 manifest --- manifest-beta.json | 2 +- versions.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest-beta.json b/manifest-beta.json index e4f6244..578d348 100644 --- a/manifest-beta.json +++ b/manifest-beta.json @@ -1,7 +1,7 @@ { "id": "omnisearch", "name": "Omnisearch", - "version": "1.19.0", + "version": "1.20.0-beta.1", "minAppVersion": "1.3.0", "description": "A search engine that just works", "author": "Simon Cambier", diff --git a/versions.json b/versions.json index a772ca6..52a6b43 100644 --- a/versions.json +++ b/versions.json @@ -121,5 +121,6 @@ "1.18.0": "1.3.0", "1.18.1": "1.3.0", "1.19.0-beta.1": "1.3.0", - "1.19.0": "1.3.0" + "1.19.0": "1.3.0", + "1.20.0-beta.1": "1.3.0" } \ No newline at end of file From 44b25eca2577ccd7334cd8fd6fefbfcf8061a051 Mon Sep 17 00:00:00 2001 From: Maxime Lapointe Date: Sat, 16 Dec 2023 04:12:13 -0500 Subject: [PATCH 2/2] Add highlighting in the note path (#327) Co-authored-by: Maxime Lapointe --- src/components/ResultItemVault.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ResultItemVault.svelte b/src/components/ResultItemVault.svelte index a0dc7fa..9357dae 100644 --- a/src/components/ResultItemVault.svelte +++ b/src/components/ResultItemVault.svelte @@ -39,6 +39,7 @@ } $: reg = stringsToRegex(note.foundWords) $: matchesTitle = getMatches(title, reg) + $: matchesNotePath = getMatches(notePath, reg) $: matchesExcerpt = cloneDeep(note.matches).map(m => { m.offset = m.offset - cleanedContent.offset return m @@ -94,7 +95,7 @@ {#if notePath}
- {notePath} + {@html highlightText(notePath, matchesNotePath)}
{/if}