mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 Supports setting newly created sub-documents to be listed last https://github.com/siyuan-note/siyuan/issues/16327
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
72acce2c86
commit
6196173898
23 changed files with 90 additions and 9 deletions
|
|
@ -431,7 +431,7 @@ func Heading2Doc(srcHeadingID, targetBoxID, targetPath, previousPath string) (sr
|
|||
if "" != previousPath {
|
||||
box.addSort(previousPath, newTree.ID)
|
||||
} else {
|
||||
box.addMinSort(path.Dir(newTargetPath), newTree.ID)
|
||||
box.setSortByConf(path.Dir(newTargetPath), newTree.ID)
|
||||
}
|
||||
if err = indexWriteTreeUpsertQueue(newTree); err != nil {
|
||||
return "", "", err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue