mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
bb73932a17
commit
b11ee97aa7
7 changed files with 96 additions and 63 deletions
|
|
@ -4,7 +4,7 @@ import {shell} from "electron";
|
|||
import {getDockByType} from "../layout/util";
|
||||
import {confirmDialog} from "../dialog/confirmDialog";
|
||||
import {getSearch, isMobile} from "../util/functions";
|
||||
import {isLocalPath, movePathTo, pathPosix} from "../util/pathName";
|
||||
import {isLocalPath, movePathTo, moveToPath, pathPosix} from "../util/pathName";
|
||||
import {MenuItem} from "./Menu";
|
||||
import {hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||
import {saveExport} from "../protyle/export";
|
||||
|
|
@ -805,7 +805,9 @@ export const movePathToMenu = (paths: string[]) => {
|
|||
icon: "iconMove",
|
||||
accelerator: window.siyuan.config.keymap.general.move.custom,
|
||||
click() {
|
||||
movePathTo(paths);
|
||||
movePathTo((toPath, toNotebook) =>{
|
||||
moveToPath(paths, toNotebook[0], toPath[0]);
|
||||
}, paths);
|
||||
}
|
||||
}).element;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue