mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	scroll to current note in the tree
This commit is contained in:
		| @@ -179,4 +179,14 @@ function collapseTree() { | ||||
|     }); | ||||
| } | ||||
|  | ||||
| function scrollToCurrentNote() { | ||||
|     const node = getNodeByKey(globalCurrentNote.detail.note_id); | ||||
|  | ||||
|     if (node) { | ||||
|         node.makeVisible({scrollIntoView: true}); | ||||
|  | ||||
|         node.setFocus(); | ||||
|     } | ||||
| } | ||||
|  | ||||
| $(document).bind('keydown', 'alt+c', collapseTree); | ||||
		Reference in New Issue
	
	Block a user