From 5b95b9875b6b7273aaeec0f263b9022f5fa54631 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Mon, 5 Jan 2026 19:27:44 +0800 Subject: [PATCH] feat(tree): open notes in new window from tree --- apps/client/src/components/app_context.ts | 1 + apps/client/src/menus/tree_context_menu.ts | 6 ++++++ apps/client/src/translations/en/translation.json | 1 + 3 files changed, 8 insertions(+) diff --git a/apps/client/src/components/app_context.ts b/apps/client/src/components/app_context.ts index 560a00438..b5f203b24 100644 --- a/apps/client/src/components/app_context.ts +++ b/apps/client/src/components/app_context.ts @@ -154,6 +154,7 @@ export type CommandMappings = { }; openInTab: ContextMenuCommandData; openNoteInSplit: ContextMenuCommandData; + openNoteInWindow: ContextMenuCommandData; openNoteInPopup: ContextMenuCommandData; toggleNoteHoisting: ContextMenuCommandData; insertNoteAfter: ContextMenuCommandData; diff --git a/apps/client/src/menus/tree_context_menu.ts b/apps/client/src/menus/tree_context_menu.ts index 51f9912b3..81d4878b1 100644 --- a/apps/client/src/menus/tree_context_menu.ts +++ b/apps/client/src/menus/tree_context_menu.ts @@ -79,6 +79,7 @@ export default class TreeContextMenu implements SelectMenuItemEventListener | null)[] = [ { title: t("tree-context-menu.open-in-a-new-tab"), command: "openInTab", shortcut: "Ctrl+Click", uiIcon: "bx bx-link-external", enabled: noSelectedNotes }, { title: t("tree-context-menu.open-in-a-new-split"), command: "openNoteInSplit", uiIcon: "bx bx-dock-right", enabled: noSelectedNotes }, + { title: t("tree-context-menu.open-in-a-new-window"), command: "openNoteInWindow", uiIcon: "bx bx-window-open", enabled: noSelectedNotes }, { title: t("tree-context-menu.open-in-popup"), command: "openNoteInPopup", uiIcon: "bx bx-edit", enabled: noSelectedNotes }, isHoisted @@ -309,6 +310,11 @@ export default class TreeContextMenu implements SelectMenuItemEventListener