mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	button for collapsing tree, button for new top level note
This commit is contained in:
		| @@ -202,4 +202,12 @@ $("button#btnResetSearch").click(function () { | ||||
|  | ||||
|     let tree = $("#tree").fancytree("getTree"); | ||||
|     tree.clearFilter(); | ||||
| }); | ||||
| }); | ||||
|  | ||||
| function collapseTree() { | ||||
|     $("#tree").fancytree("getRootNode").visit(function(node){ | ||||
|         node.setExpanded(false); | ||||
|     }); | ||||
| } | ||||
|  | ||||
| $(document).bind('keydown', 'alt+c', collapseTree); | ||||
		Reference in New Issue
	
	Block a user