diff --git a/app/src/boot/globalEvent/commandPanel.ts b/app/src/boot/globalEvent/commandPanel.ts index aa8d283ad..aaacf38bf 100644 --- a/app/src/boot/globalEvent/commandPanel.ts +++ b/app/src/boot/globalEvent/commandPanel.ts @@ -10,10 +10,11 @@ import {Search} from "../../search"; /// #if !MOBILE import {Custom} from "../../layout/dock/Custom"; import {getAllModels} from "../../layout/getAll"; -import {hasClosestByClassName} from "../../protyle/util/hasClosest"; import {Files} from "../../layout/dock/Files"; -import {addEditorToDatabase, addFilesToDatabase} from "../../protyle/render/av/addToDatabase"; /// #endif +import {addEditorToDatabase, addFilesToDatabase} from "../../protyle/render/av/addToDatabase"; +import {hasClosestByClassName} from "../../protyle/util/hasClosest"; +import {newDailyNote} from "../../util/mount"; export const commandPanel = (app: App) => { const range = getSelection().getRangeAt(0); @@ -39,7 +40,7 @@ export const commandPanel = (app: App) => { /// #if !MOBILE let html = ""; Object.keys(window.siyuan.config.keymap.general).forEach((key) => { - if (["addToDatabase"].includes(key)) { + if (["addToDatabase", "fileTree", "outline", "bookmark", "tag", "dailyNote", "inbox", "backlinks", "graphView", "globalGraph"].includes(key)) { html += `