mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
1063f50375
commit
2dae1200b4
8 changed files with 97 additions and 51 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue