mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix note autocomplete for non-recent notes
This commit is contained in:
		
							parent
							
								
									7787fa1758
								
							
						
					
					
						commit
						15d94e91db
					
				| @ -467,7 +467,13 @@ export default class AttributeEditorWidget extends TabAwareWidget { | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         this.textEditor.setData($attributesContainer.html() + " "); |         let htmlAttrs = $attributesContainer.html(); | ||||||
|  | 
 | ||||||
|  |         if (htmlAttrs.length > 0) { | ||||||
|  |             htmlAttrs += " "; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         this.textEditor.setData(htmlAttrs); | ||||||
| 
 | 
 | ||||||
|         if (saved) { |         if (saved) { | ||||||
|             this.lastSavedContent = this.textEditor.getData(); |             this.lastSavedContent = this.textEditor.getData(); | ||||||
|  | |||||||
| @ -126,6 +126,7 @@ function searchNotesForAutocomplete(query) { | |||||||
|     return searchResults.map(result => { |     return searchResults.map(result => { | ||||||
|         return { |         return { | ||||||
|             notePath: result.notePath, |             notePath: result.notePath, | ||||||
|  |             noteTitle: noteCacheService.getNoteTitle(result.noteId), | ||||||
|             notePathTitle: result.notePathTitle, |             notePathTitle: result.notePathTitle, | ||||||
|             highlightedNotePathTitle: result.highlightedNotePathTitle |             highlightedNotePathTitle: result.highlightedNotePathTitle | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam