mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01: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) {
|
||||
this.lastSavedContent = this.textEditor.getData();
|
||||
|
@ -126,6 +126,7 @@ function searchNotesForAutocomplete(query) {
|
||||
return searchResults.map(result => {
|
||||
return {
|
||||
notePath: result.notePath,
|
||||
noteTitle: noteCacheService.getNoteTitle(result.noteId),
|
||||
notePathTitle: result.notePathTitle,
|
||||
highlightedNotePathTitle: result.highlightedNotePathTitle
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user