From b700bb65d85d55b1ccfa301b2a325459e4bed2cb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 17 Apr 2025 21:08:04 +0300 Subject: [PATCH] fix(search): note path contains icon (closes #1721) --- docs/Release Notes/Release Notes/v0.93.0.md | 1 + src/services/search/services/search.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Release Notes/Release Notes/v0.93.0.md b/docs/Release Notes/Release Notes/v0.93.0.md index 68d22d5db..047ef999e 100644 --- a/docs/Release Notes/Release Notes/v0.93.0.md +++ b/docs/Release Notes/Release Notes/v0.93.0.md @@ -15,6 +15,7 @@ * Full anonymization not redacting attachment titles. * Unable to trigger "Move to" dialog via keyboard shortcut. * [Note ordering doesn't load correctly, only shows up right after moving a note](https://github.com/TriliumNext/Notes/issues/1727) +* [Note selection dialog shows icon class when selecting result with arrow button (jump to note / create link)](https://github.com/TriliumNext/Notes/issues/1721) ## ✨ Improvements diff --git a/src/services/search/services/search.ts b/src/services/search/services/search.ts index 97ff54393..3e1020e7a 100644 --- a/src/services/search/services/search.ts +++ b/src/services/search/services/search.ts @@ -358,7 +358,7 @@ function searchNotesForAutocomplete(query: string, fastSearch: boolean = true) { return { notePath: result.notePath, noteTitle: title, - notePathTitle: `${icon} ${result.notePathTitle}`, + notePathTitle: result.notePathTitle, highlightedNotePathTitle: result.highlightedNotePathTitle, icon: icon ?? "bx bx-note" };