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/16233 https://github.com/siyuan-note/siyuan/issues/16121
Daniel1c952be7167f
diff --git a/kernel/model/outline.go b/kernel/model/outline.goindex 4003fb55f3..da9fa70f7f 100644--- a/kernel/model/outline.go+++ b/kernel/model/outline.go@@ -242,6 +242,7 @@ func Outline(rootID string, preview bool) (ret []*Path, err error) {if nil == storage || 0 == len(storage) {// 默认全部展开for _, p := range ret {+ p.Folded = falsefor _, b := range p.Blocks {b.Folded = falsefor _, c := range b.Children {@@ -254,6 +255,7 @@ func Outline(rootID string, preview bool) (ret []*Path, err error) {if nil != storage["expandIds"] {// 先全部折叠,后面再根据展开 ID 列表展开对应标题for _, p := range ret {+ p.Folded = truefor _, b := range p.Blocks {b.Folded = truefor _, c := range b.Children {@@ -269,6 +271,7 @@ func Outline(rootID string, preview bool) (ret []*Path, err error) {}for _, p := range ret {+ p.Folded = !gulu.Str.Contains(p.ID, expandIDs)for _, b := range p.Blocks {b.Folded = !gulu.Str.Contains(b.ID, expandIDs)for _, c := range b.Children {@@ -286,6 +289,8 @@ func walkChildren(b *Block, expandIDs []string) {b.Folded = false} else if "expandNone" == expandIDs[0] {b.Folded = true+ } else {+ b.Folded = !gulu.Str.Contains(b.ID, expandIDs)}} else {b.Folded = !gulu.Str.Contains(b.ID, expandIDs)