Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/11460

Vanessa91a3184d0f67
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 189f999804..e3bf23bd2a 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1213,6 +1213,13 @@ export class Gutter {
}
const copyMenu = (copySubMenu(id, true, nodeElement) as IMenu[]).concat([{
+ label: window.siyuan.languages.copyPlainText,
+ accelerator: window.siyuan.config.keymap.editor.general.copyPlainText.custom,
+ click() {
+ copyPlainText(getPlainText(nodeElement as HTMLElement).trimEnd());
+ focusBlock(nodeElement);
+ }
+ }, {
label: type === "NodeAttributeView" ? window.siyuan.languages.copyMirror : window.siyuan.languages.copy,
accelerator: "⌘C",
click() {
@@ -1223,13 +1230,6 @@ export class Gutter {
}
document.execCommand("copy");
}
- }, {
- label: window.siyuan.languages.copyPlainText,
- accelerator: window.siyuan.config.keymap.editor.general.copyPlainText.custom,
- click() {
- copyPlainText(getPlainText(nodeElement as HTMLElement).trimEnd());
- focusBlock(nodeElement);
- }
}, {
label: type === "NodeAttributeView" ? window.siyuan.languages.duplicateMirror : window.siyuan.languages.duplicate,
accelerator: window.siyuan.config.keymap.editor.general.duplicate.custom,
@@ -1266,7 +1266,7 @@ export class Gutter {
}
const copyTextRefMenu = this.genCopyTextRef([nodeElement]);
if (copyTextRefMenu) {
- copyMenu.splice(copyMenu.length - 1, 0, copyTextRefMenu);
+ copyMenu.splice(7, 0, copyTextRefMenu);
}
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.copy,