Skip to content

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

:art: 当自定义排序时支持在文档上/下新建同级文档 https://github.com/siyuan-note/siyuan/issues/5098

Liang Dingb7beab267dfd
diff --git a/kernel/model/file.go b/kernel/model/file.go
index c89ed3b752..7a1f7b6ac6 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -1483,6 +1483,10 @@ func rootChildIDs(rootID string) (ret []string) {
}
func ChangeFileTreeSort(boxID string, paths []string) {
+ if 1 > len(paths) {
+ return
+ }
+
WaitForWritingFiles()
writingDataLock.Lock()
defer writingDataLock.Unlock()