Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/15937

Vanessad177a2f2a745
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 87088d9979..72108a37b2 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1855,31 +1855,36 @@ export class Gutter {
}
}
window.siyuan.menus.menu.append(new MenuItem({
- id: "jumpToParentPrev",
- label: window.siyuan.languages.jumpToParentPrev,
- accelerator: window.siyuan.config.keymap.editor.general.jumpToParentPrev.custom,
- click() {
- hideElements(["select"], protyle);
- jumpToParent(protyle, nodeElement, "previous");
- }
- }).element);
- window.siyuan.menus.menu.append(new MenuItem({
- id: "jumpToParentNext",
- label: window.siyuan.languages.jumpToParentNext,
- accelerator: window.siyuan.config.keymap.editor.general.jumpToParentNext.custom,
- click() {
- hideElements(["select"], protyle);
- jumpToParent(protyle, nodeElement, "next");
- }
- }).element);
- window.siyuan.menus.menu.append(new MenuItem({
- id: "jumpToParent",
- label: window.siyuan.languages.jumpToParent,
- accelerator: window.siyuan.config.keymap.editor.general.jumpToParent.custom,
- click() {
- hideElements(["select"], protyle);
- jumpToParent(protyle, nodeElement, "parent");
- }
+ type: "submenu",
+ label: window.siyuan.languages.jumpTo,
+ submenu: [{
+ id: "jumpToParentPrev",
+ iconHTML: "",
+ label: window.siyuan.languages.jumpToParentPrev,
+ accelerator: window.siyuan.config.keymap.editor.general.jumpToParentPrev.custom,
+ click() {
+ hideElements(["select"], protyle);
+ jumpToParent(protyle, nodeElement, "previous");
+ }
+ }, {
+ iconHTML: "",
+ id: "jumpToParentNext",
+ label: window.siyuan.languages.jumpToParentNext,
+ accelerator: window.siyuan.config.keymap.editor.general.jumpToParentNext.custom,
+ click() {
+ hideElements(["select"], protyle);
+ jumpToParent(protyle, nodeElement, "next");
+ }
+ }, {
+ iconHTML: "",
+ id: "jumpToParent",
+ label: window.siyuan.languages.jumpToParent,
+ accelerator: window.siyuan.config.keymap.editor.general.jumpToParent.custom,
+ click() {
+ hideElements(["select"], protyle);
+ jumpToParent(protyle, nodeElement, "parent");
+ }
+ }]
}).element);
window.siyuan.menus.menu.append(new MenuItem({id: "separator_3", type: "separator"}).element);