Skip to content

Build your personal knowledge base with Trilium Notes

feat(tree): open notes in new window from tree (#8269)

Elian Dorande6a6cbb07dd
diff --cc apps/client/src/menus/tree_context_menu.ts
index 777f4a74cb,81d4878b10..8dca18d905
--- a/apps/client/src/menus/tree_context_menu.ts
+++ b/apps/client/src/menus/tree_context_menu.ts
@@@ -320,8 -310,13 +321,13 @@@ export default class TreeContextMenu im
const { ntxId } = subContexts?.[subContexts.length - 1] ?? {};
this.treeWidget.triggerCommand("openNewNoteSplit", { ntxId, notePath });
+ } else if (command === "openNoteInWindow") {
+ appContext.triggerCommand("openInWindow", {
+ notePath,
+ hoistedNoteId: appContext.tabManager.getActiveContext()?.hoistedNoteId
+ });
} else if (command === "openNoteInPopup") {
- appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath })
+ appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
} else if (command === "convertNoteToAttachment") {
if (!(await dialogService.confirm(t("tree-context-menu.convert-to-attachment-confirm")))) {
return;