Skip to content

Build your personal knowledge base with Trilium Notes

note autocomplete and full text search should be able to find notes by noteId

azivner513748836e07
diff --git a/src/services/note_cache.js b/src/services/note_cache.js
index 802ab751fe..027514d525 100644
--- a/src/services/note_cache.js
+++ b/src/services/note_cache.js
@@ -50,6 +50,12 @@ function findNotes(query) {
}
for (const noteId of noteIds) {
+ // autocomplete should be able to find notes by their noteIds as well (only leafs)
+ if (noteId === query) {
+ search(noteId, [], [], results);
+ continue;
+ }
+
// for leaf note it doesn't matter if "archived" label inheritable or not
if (noteId in archived) {
continue;