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
collapse command will collapse the whole tree, including the current active note path, fixes #3664
zadame24d5a6f8383
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex 43d2ee8f8e..4ae85454b5 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -833,11 +833,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {await this.filterHoistedBranch();- const activeNode = await this.getNodeFromPath(appContext.tabManager.getActiveContextNotePath());-- if (activeNode) {- activeNode.setActive({noEvents: true, noFocus: false});- }+ // don't activate the active note, see discussion in https://github.com/zadam/trilium/issues/3664}async expandTree(node = null) {