mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
jump to note now has full list of notes
This commit is contained in:
@@ -37,7 +37,7 @@ const treeUtils = (function() {
|
||||
}
|
||||
|
||||
function getFullName(noteId) {
|
||||
let note = treeUtils.getNodeByKey(noteId);
|
||||
let note = noteTree.getByNoteId(noteId);
|
||||
|
||||
if (note === null) {
|
||||
return "[unknown]";
|
||||
@@ -46,14 +46,11 @@ const treeUtils = (function() {
|
||||
const path = [];
|
||||
|
||||
while (note) {
|
||||
path.push(note.title);
|
||||
path.push(note.note_title);
|
||||
|
||||
note = note.getParent();
|
||||
note = noteTree.getByNoteId(note.note_pid);
|
||||
}
|
||||
|
||||
// remove "root" element
|
||||
path.pop();
|
||||
|
||||
return path.reverse().join(" > ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user