recent notes can now both jump and add link

This commit is contained in:
azivner
2017-10-01 23:07:32 -04:00
parent 5d4c06a229
commit ade9da4a8a
5 changed files with 60 additions and 15 deletions

View File

@@ -10,6 +10,21 @@ function getNodeByKey(noteId) {
return globalTree.fancytree('getNodeByKey', noteId);
}
function getNoteTitle(noteId) {
const note = getNodeByKey(noteId);
if (!note) {
return;
}
let noteTitle = note.title;
if (noteTitle.endsWith(" (clone)")) {
noteTitle = noteTitle.substr(0, noteTitle.length - 8);
}
return noteTitle;
}
function getFullName(noteId) {
let note = getNodeByKey(noteId);