mirror of
				https://github.com/chylex/IntelliJ-Keyboard-Master.git
				synced 2025-10-31 03:17:15 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			723b8af939
			...
			f3a3685084
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f3a3685084 | |||
| 5e654762fc | 
| @@ -8,7 +8,7 @@ plugins { | ||||
| } | ||||
|  | ||||
| group = "com.chylex.intellij.keyboardmaster" | ||||
| version = "0.5.7" | ||||
| version = "0.5.8" | ||||
|  | ||||
| repositories { | ||||
| 	mavenCentral() | ||||
|   | ||||
| @@ -70,15 +70,20 @@ internal object VimTreeNavigation { | ||||
| 			val path = tree.selectionPath ?: return | ||||
| 			 | ||||
| 			if (tree.isExpanded(path)) { | ||||
| 				tree.collapsePath(path) | ||||
| 				collapseAndScroll(tree, path) | ||||
| 			} | ||||
| 			else { | ||||
| 				val parentPath = path.parentPath | ||||
| 				if (parentPath.parentPath != null || tree.isRootVisible) { | ||||
| 					tree.collapsePath(parentPath) | ||||
| 					collapseAndScroll(tree, parentPath) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		private fun collapseAndScroll(tree: JTree, path: TreePath) { | ||||
| 			tree.collapsePath(path) | ||||
| 			tree.scrollRowToVisible(tree.getRowForPath(path)) | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
| 	private data object ExpandTreeNodeChildrenToNextLevel : ActionNode<VimNavigationDispatcher<JTree>> { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user