Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support `Jump to the next block in the parent level` on focus status https://github.com/siyuan-note/siyuan/issues/9527

Danielb582f76f164f
diff --git a/kernel/model/block.go b/kernel/model/block.go
index 0515fe85de..dbad56dcaa 100644
--- a/kernel/model/block.go
+++ b/kernel/model/block.go
@@ -105,8 +105,11 @@ func GetParentNextChildID(id string) string {
return node.Next.ID
}
- if nil != p.Next {
- return p.Next.ID
+ for f := p.Next; nil != f; f = f.Next {
+ // 遍历取下一个块级元素(比如跳过超级块 Close 节点)
+ if f.IsBlock() {
+ return f.ID
+ }
}
}
return ""