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: 支持配置反链面板提及默认展开数 https://github.com/siyuan-note/siyuan/issues/7743
Liang Dingcdac0da92874
diff --git a/kernel/conf/editor.go b/kernel/conf/editor.goindex 2666021536..7f83c57669 100644--- a/kernel/conf/editor.go+++ b/kernel/conf/editor.go@@ -44,6 +44,7 @@ type Editor struct {RTL bool `json:"rtl"` // 是否从右到左显示Spellcheck bool `json:"spellcheck"` // 是否启用拼写检查BacklinkExpandCount int `json:"backlinkExpandCount"` // 反向链接默认展开数量+ BackmentionExpandCount int `json:"backmentionExpandCount"` // 反链提及默认展开数量}func NewEditor() *Editor {@@ -71,5 +72,6 @@ func NewEditor() *Editor {Justify: false,RTL: false,BacklinkExpandCount: 8,+ BackmentionExpandCount: 8,}}diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 8f942e373e..6b9557d5f3 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -297,6 +297,9 @@ func InitConf() {if 0 > Conf.Editor.BacklinkExpandCount {Conf.Editor.BacklinkExpandCount = 0}+ if 0> Conf.Editor.BackmentionExpandCount {+ Conf.Editor.BackmentionExpandCount = 0+ }if nil == Conf.Search {Conf.Search = conf.NewSearch()