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

This commit is contained in:
Daniel 2023-10-28 16:43:13 +08:00
parent f88fec7235
commit b582f76f16
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 ""