From 1fc860b0522b45dc31c5beb89238bf6ebf72b441 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 10 Jul 2025 17:26:40 +0300 Subject: [PATCH] feat(popup_editor): integrate with tree context menu --- apps/client/src/components/app_context.ts | 2 +- apps/client/src/menus/tree_context_menu.ts | 4 +++- apps/client/src/translations/en/translation.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/client/src/components/app_context.ts b/apps/client/src/components/app_context.ts index ffff952d1..0c155c1e8 100644 --- a/apps/client/src/components/app_context.ts +++ b/apps/client/src/components/app_context.ts @@ -126,7 +126,6 @@ export type CommandMappings = { openNoteInNewTab: CommandData; openNoteInNewSplit: CommandData; openNoteInNewWindow: CommandData; - openNoteInPopup: CommandData; openAboutDialog: CommandData; hideFloatingButtons: {}; hideLeftPane: CommandData; @@ -142,6 +141,7 @@ export type CommandMappings = { }; openInTab: ContextMenuCommandData; openNoteInSplit: ContextMenuCommandData; + openNoteInPopup: ContextMenuCommandData; toggleNoteHoisting: ContextMenuCommandData; insertNoteAfter: ContextMenuCommandData; insertChildNote: ContextMenuCommandData; diff --git a/apps/client/src/menus/tree_context_menu.ts b/apps/client/src/menus/tree_context_menu.ts index 4891111ea..1b9383442 100644 --- a/apps/client/src/menus/tree_context_menu.ts +++ b/apps/client/src/menus/tree_context_menu.ts @@ -70,8 +70,8 @@ export default class TreeContextMenu implements SelectMenuItemEventListener | null)[] = [ { title: `${t("tree-context-menu.open-in-a-new-tab")}`, command: "openInTab", 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-popup"), command: "openNoteInPopup", uiIcon: "bx bx-edit", enabled: noSelectedNotes }, isHoisted ? null @@ -246,6 +246,8 @@ export default class TreeContextMenu implements SelectMenuItemEventListener