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/8742
Vanessa609b50d40ac9
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 5af616f0ad..7f7942b19f 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -899,6 +899,7 @@"column": "Column","copied": "Copied","copy": "Copy",+ "copyText": "Copy text *","delete-column": "Delete Column","delete-row": "Delete Row","down": "Down",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex 43e4c14e41..7212f623ef 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -899,6 +899,7 @@"column": "Columna","copied": "Copiado","copy": "Copiar",+ "copyText": "Copiar texto *","delete-column": "Borrar columna","delete-row": "Borrar fila","down": "Abajo",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex c4d0ddd909..342669c6dc 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -899,6 +899,7 @@"column": "Colonne","copied": "Copié","copy": "Copie",+ "copyText": "Copier le texte *","delete-column": "Supprimer une Colonne","delete-row": "Supprimer la rangée","down": "En bas",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 68b5ffe534..09da9647e4 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -899,6 +899,7 @@"column": "行","copied": "已複製","copy": "複製",+ "copyText": "複製 文本 *","delete-column": "刪除行","delete-row": "刪除列","down": "下",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex 6f8c159b5b..00c89d2d41 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -899,6 +899,7 @@"column": "列","copied": "已复制","copy": "复制",+ "copyText": "复制 文本 *","delete-column": "删除列","delete-row": "删除行","down": "下",diff --git a/app/src/constants.ts b/app/src/constants.tsindex df60b5436b..e06a57806a 100644--- a/app/src/constants.ts+++ b/app/src/constants.ts@@ -253,6 +253,7 @@ export abstract class Constants {hLayout: {default: "", custom: ""},vLayout: {default: "", custom: ""},refPopover: {default: "", custom: ""},+ copyText: {default: "", custom: ""},expand: {default: "⌘↓", custom: "⌘↓"},collapse: {default: "⌘↑", custom: "⌘↑"},insertBottom: {default: "⌥⌘.", custom: "⌥⌘."},diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 5057f505d4..7aaaf129d7 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -729,7 +729,7 @@ export class Gutter {if (protyle?.app?.plugins) {emitOpenMenu({- plugins:protyle.app.plugins,+ plugins: protyle.app.plugins,type: "click-blockicon",detail: {protyle,@@ -1545,7 +1545,7 @@ export class Gutter {if (protyle?.app?.plugins) {emitOpenMenu({- plugins:protyle.app.plugins,+ plugins: protyle.app.plugins,type: "click-blockicon",detail: {protyle,@@ -1749,7 +1749,8 @@ export class Gutter {return false;}return {- label: `${window.siyuan.languages.copy} ${window.siyuan.languages.text} *`,+ accelerator: window.siyuan.config.keymap.editor.general.copyText.custom,+ label: window.siyuan.languages.copyText,click() {// 用于标识复制文本 *selectsElement[0].setAttribute("data-reftext", "true");diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 45efba95f8..3ec5b881de 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -971,6 +971,15 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {event.stopPropagation();return true;}+ if (matchHotKey(window.siyuan.config.keymap.editor.general.copyText.custom, event)) {+ // 用于标识复制文本 *+ nodeElement.setAttribute("data-reftext", "true");+ focusByRange(getEditorRange(nodeElement));+ document.execCommand("copy");+ event.preventDefault();+ event.stopPropagation();+ return true;+ }if (matchHotKey(window.siyuan.config.keymap.editor.general.copyBlockRef.custom, event)) {event.preventDefault();event.stopPropagation();