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/11519
Vanessa66b6bf4dd5be
diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.tsindex f04001716b..f715b5c1ab 100644--- a/app/src/boot/globalEvent/keydown.ts+++ b/app/src/boot/globalEvent/keydown.ts@@ -449,6 +449,15 @@ const editKeydown = (app: App, event: KeyboardEvent) => {event.preventDefault();return true;}+ if (matchHotKey(window.siyuan.config.keymap.editor.general.duplicateCompletely.custom, event)) {+ const nodeElement = hasClosestBlock(range.startContainer);+ if (!nodeElement || !nodeElement.classList.contains("av")) {+ return false;+ }+ duplicateCompletely(protyle, nodeElement);+ event.preventDefault();+ return true;+ }if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {reloadProtyle(protyle, true);event.preventDefault();diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.tsindex 6303cd602e..42d35061b8 100644--- a/app/src/protyle/render/av/action.ts+++ b/app/src/protyle/render/av/action.ts@@ -494,14 +494,15 @@ export const removeAttrViewColAnimation = (blockElement: Element, id: string) =>export const duplicateCompletely = (protyle:IProtyle, nodeElement:HTMLElement) => {fetchPost("/api/av/duplicateAttributeViewBlock", {avID: nodeElement.getAttribute("data-av-id")}, (response) => {+ nodeElement.classList.remove("protyle-wysiwyg--select")const tempElement = document.createElement("template");tempElement.innerHTML = protyle.lute.SpinBlockDOM(`<div data-node-id="${response.data.blockID}" data-av-id="${response.data.avID}" data-type="NodeAttributeView" data-av-type="table"></div>`)const cloneElement = tempElement.content.firstElementChild;nodeElement.after(cloneElement);avRender(cloneElement, protyle, () => {focusBlock(cloneElement);+ scrollCenter(protyle);});- scrollCenter(protyle);transaction(protyle, [{action: "insert",data: cloneElement.outerHTML,