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/2098
Liang Ding4d0a71ce07cc
diff --git a/kernel/conf/filetree.go b/kernel/conf/filetree.goindex 3c67832bd0..9cfc03dac3 100644--- a/kernel/conf/filetree.go+++ b/kernel/conf/filetree.go@@ -26,6 +26,7 @@ type FileTree struct {RefCreateSavePath string `json:"refCreateSavePath"` // 块引时新建文档存储文件夹路径CreateDocNameTemplate string `json:"createDocNameTemplate"` // 新建文档名模板MaxListCount int `json:"maxListCount"` // 最大列出数量+ MaxOpenTabCount int `json:"maxOpenTabCount"` // 最大打开页签数量AllowCreateDeeper bool `json:"allowCreateDeeper"` // 允许创建超过 7 层深度的子文档RemoveDocWithoutConfirm bool `json:"removeDocWithoutConfirm"` // 删除文档时是否不需要确认@@ -39,6 +40,7 @@ func NewFileTree() *FileTree {Sort: util.SortModeCustom,CreateDocNameTemplate: "",MaxListCount: 512,+ MaxOpenTabCount: 12,AllowCreateDeeper: false,}}diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex c2cf8352f6..ce6a1f8829 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -130,6 +130,9 @@ func InitConf() {if 1 > Conf.FileTree.MaxListCount {Conf.FileTree.MaxListCount = 512}+ if 1 > Conf.FileTree.MaxOpenTabCount {+ Conf.FileTree.MaxOpenTabCount = 12+ }if nil == Conf.Tag {Conf.Tag = conf.NewTag()}