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/6856
Vanessaa19ec991b00b
diff --git a/app/src/search/spread.ts b/app/src/search/spread.tsindex 8bb3fe8815..9f4e079877 100644--- a/app/src/search/spread.ts+++ b/app/src/search/spread.ts@@ -61,8 +61,8 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: striparagraph: window.siyuan.config.search.paragraph,};}- let hPath = "";- const idPath: string[] = [];+ let hPath = localData;+ let idPath: string[] = [];if (notebookId) {hPath = escapeHtml(getNotebookName(notebookId));idPath.push(notebookId);@@ -74,6 +74,9 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: strihPath = pathPosix().join(hPath, escapeHtml(response.data));idPath[0] = pathPosix().join(idPath[0], searchPath);}+ } else if (window.siyuan.config.keymap.general.globalSearch.custom === hotkey) {+ hPath = localData.hPath || "";+ idPath = localData.idPath || [];}let range: Range;