mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	add keyboard shortcut for duplicate subtree, #1451
This commit is contained in:
		| @@ -739,7 +739,10 @@ function duplicateSubtree(origNoteId, newParentNoteId) { | ||||
|  | ||||
|     const res = duplicateSubtreeInner(origNote, origBranch, newParentNoteId, noteIdMapping); | ||||
|  | ||||
|     res.note.title += " (dup)"; | ||||
|     if (!res.note.title.endsWith('(dup)')) { | ||||
|         res.note.title += " (dup)"; | ||||
|     } | ||||
|  | ||||
|     res.note.save(); | ||||
|  | ||||
|     return res; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user