create note from template WIP

This commit is contained in:
zadam
2022-05-31 22:45:57 +02:00
parent 88586b0f25
commit 98b579524c
14 changed files with 141 additions and 226 deletions

View File

@@ -293,10 +293,20 @@ function getRelatedNotes(req) {
};
}
function searchTemplates() {
const query = formatAttrForSearch({type: 'label', name: "template"}, false);
return searchService.searchNotes(query, {
includeArchivedNotes: true,
ignoreHoistedNote: false
}).map(note => note.noteId);
}
module.exports = {
searchFromNote,
searchAndExecute,
getRelatedNotes,
quickSearch,
search
search,
searchTemplates
};