diff --git a/src/services/note_cache.js b/src/services/note_cache.js index 802ab751f..027514d52 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;