create note directly from mention linking

This commit is contained in:
zadam
2020-05-09 14:25:27 +02:00
parent c70a842bc6
commit 2e837642e2
9 changed files with 48 additions and 14 deletions

View File

@@ -71,7 +71,7 @@ async function getRunPath(notePath) {
if (parents.length > 0) {
console.debug(utils.now(), "Available parents:", parents);
const someNotePath = await getSomeNotePath(parents[0]);
const someNotePath = getSomeNotePath(parents[0]);
if (someNotePath) { // in case it's root the path may be empty
const pathToRoot = someNotePath.split("/").reverse();
@@ -103,7 +103,7 @@ async function getRunPath(notePath) {
return effectivePath.reverse();
}
async function getSomeNotePath(note) {
function getSomeNotePath(note) {
utils.assertArguments(note);
const path = [];
@@ -286,4 +286,4 @@ export default {
getNotePathTitle,
getHashValueFromAddress,
parseNotePath
};
};