An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa98a096551a20
diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.tsindex 55e2594548..ef6e269bf1 100644--- a/app/src/boot/globalEvent/keydown.ts+++ b/app/src/boot/globalEvent/keydown.ts@@ -588,7 +588,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {if (item.getAttribute("data-type") === "navigation-file") {ids.push(item.getAttribute("data-node-id"));}- })+ });if (matchHotKey(window.siyuan.config.keymap.editor.general.spaceRepetition.custom, event) && !window.siyuan.config.readonly) {if (isFile) {@@ -663,7 +663,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {fetchPost("/api/filetree/duplicateDoc", {id: item,});- })+ });return true;}diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.tsindex 536144a54a..16860c3a32 100644--- a/app/src/protyle/toolbar/util.ts+++ b/app/src/protyle/toolbar/util.ts@@ -244,4 +244,4 @@ export const copyTextByType = async (ids: string[],}}writeText(text);-}+};diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.tsindex b65825543a..ecc252dcf0 100644--- a/app/src/protyle/wysiwyg/commonHotkey.ts+++ b/app/src/protyle/wysiwyg/commonHotkey.ts@@ -55,9 +55,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemenif (selectElements.length === 0) {selectElements.push(nodeElement);}- copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocolMd")+ copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocolMd");} else {- copyTextByType([protyle.block.rootID], "protocolMd")+ copyTextByType([protyle.block.rootID], "protocolMd");}event.preventDefault();event.stopPropagation();@@ -70,9 +70,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemenif (selectElements.length === 0) {selectElements.push(nodeElement);}- copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "id")+ copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "id");} else {- copyTextByType([protyle.block.rootID], "id")+ copyTextByType([protyle.block.rootID], "id");}event.preventDefault();event.stopPropagation();@@ -84,9 +84,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemenif (selectElements.length === 0) {selectElements.push(nodeElement);}- copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocol")+ copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocol");} else {- copyTextByType([protyle.block.rootID], "protocol")+ copyTextByType([protyle.block.rootID], "protocol");}event.preventDefault();event.stopPropagation();@@ -99,9 +99,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemenif (selectElements.length === 0) {selectElements.push(nodeElement);}- copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "blockEmbed")+ copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "blockEmbed");} else {- copyTextByType([protyle.block.rootID], "blockEmbed")+ copyTextByType([protyle.block.rootID], "blockEmbed");}event.preventDefault();event.stopPropagation();