mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 07:16:10 +01:00
This commit is contained in:
parent
0c6c90a82d
commit
12ebc120a0
10 changed files with 184 additions and 119 deletions
|
|
@ -986,9 +986,18 @@ export const movePathToMenu = (paths: string[]) => {
|
|||
icon: "iconMove",
|
||||
accelerator: window.siyuan.config.keymap.general.move.custom,
|
||||
click() {
|
||||
movePathTo((toPath, toNotebook) => {
|
||||
moveToPath(paths, toNotebook[0], toPath[0]);
|
||||
}, paths);
|
||||
const rootIDs: string[] = [];
|
||||
paths.forEach(item => {
|
||||
rootIDs.push(pathPosix().basename(item).replace(".sy", ""));
|
||||
});
|
||||
movePathTo({
|
||||
cb: (toPath, toNotebook) => {
|
||||
moveToPath(paths, toNotebook[0], toPath[0]);
|
||||
},
|
||||
paths,
|
||||
flashcard: false,
|
||||
rootIDs,
|
||||
});
|
||||
}
|
||||
}).element;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue