mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	new split should keep the hoisted note
This commit is contained in:
		
							parent
							
								
									c22b6b29e0
								
							
						
					
					
						commit
						8d6801bb85
					
				| @ -35,13 +35,17 @@ export default class SplitNoteContainer extends FlexContainer { | ||||
|     } | ||||
| 
 | ||||
|     async openNewNoteSplitEvent({ntxId, notePath}) { | ||||
|         const mainNtxId = appContext.tabManager.getActiveMainContext().ntxId; | ||||
| 
 | ||||
|         if (!ntxId) { | ||||
|             logError("empty ntxId!"); | ||||
| 
 | ||||
|             ntxId = appContext.tabManager.getActiveMainContext().ntxId; | ||||
|             ntxId = mainNtxId; | ||||
|         } | ||||
| 
 | ||||
|         const noteContext = await appContext.tabManager.openEmptyTab(null, 'root', appContext.tabManager.getActiveMainContext().ntxId); | ||||
|         const hoistedNoteId = appContext.tabManager.getActiveContext().hoistedNoteId; | ||||
| 
 | ||||
|         const noteContext = await appContext.tabManager.openEmptyTab(null, hoistedNoteId, mainNtxId); | ||||
| 
 | ||||
|         // remove the original position of newly created note context
 | ||||
|         const ntxIds = appContext.tabManager.children.map(c => c.ntxId) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam