added ancestor depth search criteria

This commit is contained in:
zadam
2021-01-26 23:25:18 +01:00
parent a1f67e830d
commit fbabdef272
6 changed files with 119 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ async function search(note) {
const searchContext = new SearchContext({
fastSearch: note.hasLabel('fastSearch'),
ancestorNoteId: note.getRelationValue('ancestor'),
ancestorDepth: note.getLabelValue('ancestorDepth'),
includeArchivedNotes: note.hasLabel('includeArchivedNotes'),
orderBy: note.getLabelValue('orderBy'),
orderDirection: note.getLabelValue('orderDirection'),