mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 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:
parent
b582f76f16
commit
c47de3eba0
1 changed files with 4 additions and 1 deletions
|
|
@ -102,8 +102,11 @@ func GetParentNextChildID(id string) string {
|
||||||
|
|
||||||
for p := node.Parent; nil != p; p = p.Parent {
|
for p := node.Parent; nil != p; p = p.Parent {
|
||||||
if ast.NodeDocument == p.Type {
|
if ast.NodeDocument == p.Type {
|
||||||
|
if nil != node.Next {
|
||||||
return node.Next.ID
|
return node.Next.ID
|
||||||
}
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
for f := p.Next; nil != f; f = f.Next {
|
for f := p.Next; nil != f; f = f.Next {
|
||||||
// 遍历取下一个块级元素(比如跳过超级块 Close 节点)
|
// 遍历取下一个块级元素(比如跳过超级块 Close 节点)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue