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/9410

Vanessa99e3f121bef9
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index e1e927bdcb..ab376d6d5e 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -130,6 +130,15 @@ export class Outline extends Model {
});
});
}
+ },
+ ctrlClick(element: HTMLElement) {
+ const id = element.getAttribute("data-node-id");
+ openFileById({
+ app: options.app,
+ id,
+ action: [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL, Constants.CB_GET_HTML],
+ zoomIn: true,
+ });
}
});
// 为了快捷键的 dispatch