Vanessa 2023-09-30 13:57:40 +08:00
parent 1063f50375
commit 2dae1200b4
8 changed files with 97 additions and 51 deletions

View file

@ -364,7 +364,13 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l
paths.push(item.getAttribute("data-path"));
}
});
newFile(app, notebookId, pathPosix().dirname(pathString), paths);
newFile({
app,
notebookId,
currentPath: pathPosix().dirname(pathString),
paths,
useSavePath: false
});
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({
@ -380,7 +386,13 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l
}
}
});
newFile(app, notebookId, pathPosix().dirname(pathString), paths);
newFile({
app,
notebookId,
currentPath: pathPosix().dirname(pathString),
paths,
useSavePath: false
});
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);