mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 00:36:33 +01:00
script api search ignores hoisting by default
This commit is contained in:
@@ -102,6 +102,10 @@ function BackendScriptApi(currentNote, apiParams) {
|
||||
searchParams.includeArchivedNotes = true;
|
||||
}
|
||||
|
||||
if (searchParams.ignoreHoistedNote === undefined) {
|
||||
searchParams.ignoreHoistedNote = true;
|
||||
}
|
||||
|
||||
const noteIds = searchService.findNotesWithQuery(query, new SearchContext(searchParams))
|
||||
.map(sr => sr.noteId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user