An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/11460
Vanessaae33a3b1edb3
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex d12a61ba60..b60f0520d4 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -1210,8 +1210,9 @@ export class Gutter {}}).element);}+const copyMenu = (copySubMenu(id, true, nodeElement) as IMenu[]).concat([{- label: window.siyuan.languages.copy,+ label: type === "NodeAttributeView" ? window.siyuan.languages.copyMirror : window.siyuan.languages.copy,accelerator: "⌘C",click() {if (isNotEditBlock(nodeElement)) {@@ -1229,13 +1230,26 @@ export class Gutter {focusBlock(nodeElement);}}, {- label: window.siyuan.languages.duplicate,+ label: type === "NodeAttributeView" ? window.siyuan.languages.duplicateMirror : window.siyuan.languages.duplicate,accelerator: window.siyuan.config.keymap.editor.general.duplicate.custom,disabled: protyle.disabled,click() {duplicateBlock([nodeElement], protyle);}}]);+ if (type === "NodeAttributeView") {+ copyMenu.push({+ label: window.siyuan.languages.duplicateCompletely,+ click() {+ fetchPost("/api/av/duplicateAttributeViewBlock", {avID: nodeElement.getAttribute("data-av-id")}, (response) => {+ const newBlock = document.createElement("div");+ newBlock.innerHTML = response.data;+ nodeElement.parentElement.insertBefore(newBlock, nodeElement.nextElementSibling);+ focusBlock(newBlock);+ });+ }+ });+ }const copyTextRefMenu = this.genCopyTextRef([nodeElement]);if (copyTextRefMenu) {copyMenu.splice(copyMenu.length - 1, 0, copyTextRefMenu);