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

Liang Ding4559b03488db
diff --git a/kernel/conf/editor.go b/kernel/conf/editor.go
index fe64c87aaf..2ae56d4954 100644
--- a/kernel/conf/editor.go
+++ b/kernel/conf/editor.go
@@ -38,6 +38,7 @@ type Editor struct {
ReadOnly bool `json:"readOnly"` // 只读模式
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
+ BlockRefFloatWindowMode int `json:"blockRefFloatWindowMode"` // 块引悬浮窗触发模式,0:光标悬停,1:按住 Ctrl 悬停
}
func NewEditor() *Editor {
@@ -60,5 +61,6 @@ func NewEditor() *Editor {
ReadOnly: false,
EmbedBlockBreadcrumb: false,
ListLogicalOutdent: false,
+ BlockRefFloatWindowMode: 0,
}
}