🎨 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 11:25:21 +08:00
parent 87a04f7965
commit e54641f2c1
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 40 additions and 5 deletions

View file

@ -29,6 +29,21 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func getParentNextChildID(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
id := arg["id"].(string)
ret.Data = map[string]string{
"id": model.GetParentNextChildID(id),
}
}
func transferBlockRef(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)