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: The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957
Daniel30621f6ecf38
diff --git a/kernel/model/outline.go b/kernel/model/outline.goindex e07a86df9e..63b2c6a01d 100644--- a/kernel/model/outline.go+++ b/kernel/model/outline.go@@ -54,8 +54,9 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {})headingChildren := treenode.HeadingChildren(heading)- var tmp []*ast.Node+// 过滤掉超级块结束节点+ var tmp []*ast.Nodefor _, child := range headingChildren {if ast.NodeSuperBlockCloseMarker == child.Type {continue@@ -103,6 +104,17 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {targetNode := parentHeadingparentHeadingChildren := treenode.HeadingChildren(parentHeading)++ // 找到下方第一个非标题节点+ tmp = nil+ for _, child := range parentHeadingChildren {+ if ast.NodeHeading == child.Type {+ break+ }+ tmp = append(tmp, child)+ }+ parentHeadingChildren = tmp+if 0 < len(parentHeadingChildren) {for _, child := range parentHeadingChildren {if child.ID == headingID {