From fe605c012ae9fd0141b2f47f7f6ba729f3941c5e Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 20 Nov 2021 13:20:06 +0100 Subject: [PATCH 1/2] fix setting monospace font from theme --- src/public/stylesheets/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 616a489c1..c76a4271a 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -58,7 +58,7 @@ table td, table th { } code, kbd, pre, samp { - font-family: var(--monospace-font-family); + font-family: var(--monospace-font-family) !important; } .input-group-text { From 08e9b5969621de6b4fc516f9958f2c14486dea72 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 20 Nov 2021 21:01:37 +0100 Subject: [PATCH 2/2] hide hidden subtree notes from search results, closes #2361 --- src/services/search/services/search.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/search/services/search.js b/src/services/search/services/search.js index 5a0155953..1e9c3479b 100644 --- a/src/services/search/services/search.js +++ b/src/services/search/services/search.js @@ -83,8 +83,12 @@ function findResultsWithExpression(expression, searchContext) { throw new Error(`Can't find note path for note ${JSON.stringify(note.getPojo())}`); } + if (notePathArray.includes("hidden")) { + return null; + } + return new SearchResult(notePathArray); - }); + }).filter(Boolean); for (const res of searchResults) { res.computeScore(searchContext.highlightedTokens);