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: Add `Show in Folder` for the database block https://github.com/siyuan-note/siyuan/issues/15995
Daniela2136c526da9
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 55ba1f94f8..73224e3e5f 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -41,7 +41,7 @@ import {countBlockWord} from "../../layout/status";import {Constants} from "../../constants";import {mathRender} from "../render/mathRender";import {duplicateBlock} from "../wysiwyg/commonHotkey";-import {movePathTo} from "../../util/pathName";+import {movePathTo, useShell} from "../../util/pathName";import {hintMoveBlock} from "../hint/extend";import {makeCard, quickMakeCard} from "../../card/makeCard";import {transferBlockRef} from "../../menus/block";@@ -59,6 +59,7 @@ import {addEditorToDatabase} from "../render/av/addToDatabase";import {processClonePHElement} from "../render/util";/// #if !MOBILEimport {openFileById} from "../../editor/util";+import * as path from "path";/// #endifimport {checkFold} from "../../util/noRelyPCFunction";import {clearSelect} from "../util/clearSelect";@@ -1559,6 +1560,14 @@ export class Gutter {});}}).element);+ window.siyuan.menus.menu.append(new MenuItem({+ id: "showDatabaseInFolder",+ icon: "iconFolder",+ label: window.siyuan.languages.showInFolder,+ click() {+ useShell("showItemInFolder", path.join(window.siyuan.config.system.dataDir, "storage", "av", nodeElement.getAttribute("data-av-id")) + ".json");+ }+ }).element);} else if ((type === "NodeVideo" || type === "NodeAudio") && !protyle.disabled) {window.siyuan.menus.menu.append(new MenuItem({id: "separator_VideoOrAudio", type: "separator"}).element);window.siyuan.menus.menu.append(new MenuItem({