An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5284
Vanessa29117c764d1c
diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.tsindex 4aac441591..39755e8965 100644--- a/app/src/util/onGetConfig.ts+++ b/app/src/util/onGetConfig.ts@@ -21,6 +21,7 @@ import {openFileById} from "../editor/util";import {focusByRange} from "../protyle/util/selection";import {exitSiYuan} from "../dialog/processSystem";import {openSetting} from "../config";+import {getSearch} from "./functions";const matchKeymap = (keymap: Record<string, IKeymapItem>, key1: "general" | "editor", key2?: "general" | "insert" | "heading" | "list" | "table") => {if (key1 === "general") {@@ -346,12 +347,14 @@ const initWindow = () => {const currentWindow = getCurrentWindow();currentWindow.on("focus", winOnFocus);ipcRenderer.on(Constants.SIYUAN_OPENURL, (event, url) => {- const params = url.split("?");+ if (!/^siyuan:\/\/blocks\/\d{14}-\w{7}/.test(url)) {+ return;+ }openFileById({id: url.substr(16, 22),hasContext: true,action: [Constants.CB_GET_FOCUS],- zoomIn: params.length === 2 && params[1].startsWith("focus=1")+ zoomIn: getSearch("focus", url) === "1"});});ipcRenderer.on(Constants.SIYUAN_SAVE_CLOSE, (event, close) => {