mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	better handling of renames in recent notes list (but hacky and not perfect)
This commit is contained in:
		| @@ -18,6 +18,11 @@ const keybindings = { | ||||
|                         node.getParent().renderTitle(); | ||||
|                     } | ||||
|  | ||||
|                     delete globalNoteNames[node.key]; | ||||
|  | ||||
|                     // remove from recent notes | ||||
|                     recentNotes = recentNotes.filter(note => note !== node.key); | ||||
|  | ||||
|                     node.remove(); | ||||
|                 } | ||||
|             }); | ||||
| @@ -89,6 +94,7 @@ const keybindings = { | ||||
|     } | ||||
| }; | ||||
|  | ||||
| const globalNoteNames = {}; | ||||
|  | ||||
| $(function(){ | ||||
|     $.get(baseUrl + 'tree').then(resp => { | ||||
| @@ -101,6 +107,8 @@ $(function(){ | ||||
|  | ||||
|         function copyTitle(notes) { | ||||
|             for (let note of notes) { | ||||
|                 globalNoteNames[note.note_id] = note.note_title; | ||||
|  | ||||
|                 note.title = note.note_title; | ||||
|  | ||||
|                 if (note.is_clone) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user