mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
create note from template WIP
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user