OPML export support (issue #78), import missing for now

This commit is contained in:
azivner
2018-05-27 12:26:34 -04:00
parent cab54a458f
commit f47ae12019
6 changed files with 98 additions and 9 deletions

View File

@@ -86,6 +86,10 @@ async function expandToNote(notePath, expandOpts) {
for (const childNoteId of runPath) {
const node = getNodesByNoteId(childNoteId).find(node => node.data.parentNoteId === parentNoteId);
if (!node) {
console.log(`Can't find node for noteId=${childNoteId} with parentNoteId=${parentNoteId}`);
}
if (childNoteId === noteId) {
return node;
}
@@ -154,6 +158,8 @@ async function getRunPath(notePath) {
for (const noteId of pathToRoot) {
effectivePath.push(noteId);
}
effectivePath.push('root');
}
break;