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/8528
Vanessa311665096592
diff --git a/app/src/boot/globalShortcut.ts b/app/src/boot/globalShortcut.tsindex ce6f55a47d..6f83816c33 100644--- a/app/src/boot/globalShortcut.ts+++ b/app/src/boot/globalShortcut.ts@@ -1212,6 +1212,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {event.preventDefault();return true;}+if (matchHotKey("⌘/", event)) {const liRect = liElements[0].getBoundingClientRect();if (isFile) {@@ -1224,6 +1225,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {}return true;}+if (isFile && matchHotKey(window.siyuan.config.keymap.general.move.custom, event)) {window.siyuan.menus.menu.remove();const pathes = getTopPaths(liElements);@@ -1233,6 +1235,19 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {event.preventDefault();return true;}++ if (isFile && matchHotKey(window.siyuan.config.keymap.editor.general.insertRight.custom, event)) {+ window.siyuan.menus.menu.remove();+ openFileById({+ app,+ id: liElements[0].getAttribute("data-node-id"),+ action: [Constants.CB_GET_FOCUS],+ position: "right",+ });+ event.preventDefault();+ return true;+ }+let searchKey = "";if (matchHotKey(window.siyuan.config.keymap.general.replace.custom, event)) {searchKey = window.siyuan.config.keymap.general.replace.custom;diff --git a/app/src/menus/util.ts b/app/src/menus/util.tsindex df4aab3001..f6a6fe531f 100644--- a/app/src/menus/util.ts+++ b/app/src/menus/util.ts@@ -11,6 +11,7 @@ import {Constants} from "../constants";import {openNewWindowById} from "../window/openNewWindow";import {MenuItem} from "./Menu";import {App} from "../index";+import {updateHotkeyTip} from "../protyle/util/compatibility";export const exportAsset = (src: string) => {/// #if !BROWSER@@ -37,7 +38,7 @@ export const openEditorTab = (app: App, id: string, notebookId?: string, pathStrconst openSubmenus: IMenu[] = [{icon: "iconLayoutRight",label: window.siyuan.languages.insertRight,- accelerator: "⌥Click",+ accelerator: `${updateHotkeyTip(window.siyuan.config.keymap.editor.general.insertRight.custom)}/${updateHotkeyTip("⌥Click")}`,click: () => {openFileById({app, id, position: "right", action: [Constants.CB_GET_FOCUS]});}diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex a78b863e14..d1db52a1ca 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -168,7 +168,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo<kbd>${updateHotkeyTip(window.siyuan.config.keymap.general.newFile.custom)}</kbd> ${window.siyuan.languages.new}<kbd>Enter/Double Click</kbd> ${window.siyuan.languages.searchTip2}<kbd>Click</kbd> ${window.siyuan.languages.searchTip3}- <kbd>${updateHotkeyTip("⌥Click")}</kbd> ${window.siyuan.languages.searchTip4}+ <kbd>${updateHotkeyTip(window.siyuan.config.keymap.editor.general.insertRight.custom)}/${updateHotkeyTip("⌥Click")}</kbd> ${window.siyuan.languages.searchTip4}<kbd>Esc</kbd> ${window.siyuan.languages.searchTip5}</div></div>@@ -720,6 +720,24 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, cloif (!currentList || event.isComposing) {return;}+ if (searchInputElement.value && matchHotKey(window.siyuan.config.keymap.editor.general.insertRight.custom, event)) {+ const id = currentList.getAttribute("data-node-id");+ fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {+ openFileById({+ app,+ id,+ position: "right",+ action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],+ zoomIn: foldResponse.data+ });+ if (closeCB) {+ closeCB();+ }+ });+ event.preventDefault();+ event.stopPropagation();+ return;+ }if (searchInputElement.value && matchHotKey(window.siyuan.config.keymap.general.newFile.custom, event)) {newFileByName(app, searchInputElement.value);event.preventDefault();