mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
use just note title in note autocomplete input field
This commit is contained in:
@@ -57,12 +57,16 @@ function getRecentNotes(activeNoteId) {
|
||||
LIMIT 200`, params);
|
||||
|
||||
return recentNotes.map(rn => {
|
||||
const title = noteCacheService.getNoteTitleForPath(rn.notePath.split('/'));
|
||||
const notePathArray = rn.notePath.split('/');
|
||||
|
||||
const noteTitle = noteCacheService.getNoteTitle(notePathArray[notePathArray.length - 1]);
|
||||
const notePathTitle = noteCacheService.getNoteTitleForPath(notePathArray);
|
||||
|
||||
return {
|
||||
notePath: rn.notePath,
|
||||
notePathTitle: title,
|
||||
highlightedNotePathTitle: utils.escapeHtml(title)
|
||||
noteTitle,
|
||||
notePathTitle,
|
||||
highlightedNotePathTitle: utils.escapeHtml(notePathTitle)
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user