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: Improve duplicate action placement in table row and column menus https://github.com/siyuan-note/siyuan/issues/20808
Danielf34d40e6223b
diff --git a/app/src/protyle/util/tableControl.ts b/app/src/protyle/util/tableControl.tsindex a845e555eb..e0d5b1cf5b 100644--- a/app/src/protyle/util/tableControl.ts+++ b/app/src/protyle/util/tableControl.ts@@ -1884,6 +1884,16 @@ export class TableControl {},}).element);}+ if (!this.protyle.disabled && this.selection.mode !== "cell") {+ menu.append(new MenuItem({+ icon: "iconCopy",+ label: window.siyuan.languages.duplicateCopy,+ disabled: merged,+ action: merged ? "iconInfo" : undefined,+ actionLabel: merged ? window.siyuan.languages.splitMergedCellTip : undefined,+ click: () => this.duplicateRowsOrColumns(),+ }).element);+ }menu.append(new MenuItem({icon: "iconCut",label: window.siyuan.languages.cut,@@ -1910,14 +1920,6 @@ export class TableControl {menu.append(new MenuItem({type: "separator"}).element);this.appendInsertMenus();if (this.selection.mode !== "cell") {- menu.append(new MenuItem({- icon: "iconCopy",- label: window.siyuan.languages.duplicateCopy,- disabled: merged,- action: merged ? "iconInfo" : undefined,- actionLabel: merged ? window.siyuan.languages.splitMergedCellTip : undefined,- click: () => this.duplicateRowsOrColumns(),- }).element);if (this.selection.indexes.size === 1 && this.selection.indexes.has(0)) {const headerType = this.selection.mode === "row" ? "row" : "column";menu.append(new MenuItem({