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: fix https://github.com/siyuan-note/siyuan/issues/6360
Vanessa7e9bf0bd85da
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 45121f2281..eff3e84c1e 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -1296,34 +1296,36 @@ export class Gutter {}).element);}window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);- window.siyuan.menus.menu.append(new MenuItem({- accelerator: `${updateHotkeyTip(window.siyuan.config.keymap.general.enter.custom)}/${updateHotkeyTip("⌘Click")}`,- label: window.siyuan.languages.enter,- click() {- zoomOut(protyle, id);- }- }).element);- window.siyuan.menus.menu.append(new MenuItem({- accelerator: window.siyuan.config.keymap.general.enterBack.custom,- label: window.siyuan.languages.enterBack,- click() {- if (!protyle.block.showAll) {- const ids = protyle.path.split("/");- if (ids.length > 2) {- /// #if MOBILE- openMobileFileById(ids[ids.length - 2], [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL]);- /// #else- openFileById({- id: ids[ids.length - 2],- action: [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL]- });- /// #endif+ if (!protyle.options.backlinkData) {+ window.siyuan.menus.menu.append(new MenuItem({+ accelerator: `${updateHotkeyTip(window.siyuan.config.keymap.general.enter.custom)}/${updateHotkeyTip("⌘Click")}`,+ label: window.siyuan.languages.enter,+ click() {+ zoomOut(protyle, id);+ }+ }).element);+ window.siyuan.menus.menu.append(new MenuItem({+ accelerator: window.siyuan.config.keymap.general.enterBack.custom,+ label: window.siyuan.languages.enterBack,+ click() {+ if (!protyle.block.showAll) {+ const ids = protyle.path.split("/");+ if (ids.length > 2) {+ /// #if MOBILE+ openMobileFileById(ids[ids.length - 2], [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL]);+ /// #else+ openFileById({+ id: ids[ids.length - 2],+ action: [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL]+ });+ /// #endif+ }+ } else {+ zoomOut(protyle, protyle.block.parent2ID, id);}- } else {- zoomOut(protyle, protyle.block.parent2ID, id);}- }- }).element);+ }).element);+ }if (!protyle.disabled) {window.siyuan.menus.menu.append(new MenuItem({icon: "iconBefore",