Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(touchbar): create child note in note tree
Elian Dorancbc6e74d640b
diff --git a/src/public/app/widgets/note_tree.ts b/src/public/app/widgets/note_tree.tsindex 961432df92..285b7eb795 100644--- a/src/public/app/widgets/note_tree.ts+++ b/src/public/app/widgets/note_tree.ts@@ -1778,6 +1778,16 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {}const items: TouchBarItem[] = [+ new TouchBar.TouchBarButton({+ icon: buildIcon("NSImageNameTouchBarAddTemplate"),+ click: () => {+ const node = this.getActiveNode();+ const notePath = treeService.getNotePath(node);+ noteCreateService.createNote(notePath, {+ isProtected: node.data.isProtected+ });+ }+ }),new TouchBar.TouchBarButton({icon: buildIcon("NSImageNameTouchBarDeleteTemplate"),click: () => triggerCommand("deleteNotes")