diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index 3816a1d5f..5fcb5875f 100644 --- a/app/src/card/openCard.ts +++ b/app/src/card/openCard.ts @@ -225,7 +225,7 @@ export const openCardByData = (cardsData: { filterElement.setAttribute("data-id", toPath[0] === "/" ? toNotebook[0] : getDisplayName(toPath[0], true)) filterElement.setAttribute("data-cardtype", toPath[0] === "/" ? "notebook" : "doc") fetchNewRound(); - }) + }, [], undefined, window.siyuan.languages.specifyPath, true) } }).element); window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element); diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts index 3a18286e5..165cab41c 100644 --- a/app/src/util/pathName.ts +++ b/app/src/util/pathName.ts @@ -89,7 +89,7 @@ export const moveToPath = (fromPaths: string[], toNotebook: string, toPath: stri }); }; -export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, paths?: string[], range?: Range, title?: string) => { +export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, paths?: string[], range?: Range, title?: string, flashcard = false) => { const exitDialog = window.siyuan.dialogs.find((item) => { if (item.element.querySelector("#foldList")) { item.destroy(); @@ -129,10 +129,11 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, } const searchListElement = dialog.element.querySelector("#foldList"); const searchTreeElement = dialog.element.querySelector("#foldTree"); - let html = ""; - window.siyuan.notebooks.forEach((item) => { - if (!item.closed) { - html += `