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/15036

Vanessade9d57d0acd4
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index baf6d64478..c272925c87 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1,4 +1,5 @@
{
+ "copyAVID": "复制数据库 ID",
"hideEmptyFields": "隐藏空字段",
"displayEmptyFields": "显示空字段",
"cardAspectRatio": "预览区宽高比",
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 5b7627167b..8283172416 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1517,8 +1517,15 @@ export class Gutter {
submenu: tableMenu(protyle, nodeElement, cellElement as HTMLTableCellElement, range).menus as IMenu[]
}).element);
}
- } else if (type === "NodeAttributeView" && !protyle.disabled) {
+ } else if (type === "NodeAttributeView") {
window.siyuan.menus.menu.append(new MenuItem({id: "separator_exportCSV", type: "separator"}).element);
+ window.siyuan.menus.menu.append(new MenuItem({
+ icon: "iconCopy",
+ label: window.siyuan.languages.copyAVID,
+ click() {
+ writeText(nodeElement.getAttribute("data-av-id"));
+ }
+ }).element);
window.siyuan.menus.menu.append(new MenuItem({
id: "exportCSV",
icon: "iconDatabase",