🎨 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:
Daniel 2025-11-11 10:54:54 +08:00
parent 72acce2c86
commit 6196173898
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
23 changed files with 90 additions and 9 deletions

View file

@ -34,8 +34,8 @@ type FileTree struct {
CloseTabsOnStart bool `json:"closeTabsOnStart"` // 启动时关闭所有页签
UseSingleLineSave bool `json:"useSingleLineSave"` // 使用单行保存文档 .sy 和属性视图 .json
LargeFileWarningSize int `json:"largeFileWarningSize"` // 大文件警告大小单位MB
Sort int `json:"sort"` // 排序方式
CreateDocAtTop *bool `json:"createDocAtTop"` // 在顶部创建新文档 https://github.com/siyuan-note/siyuan/issues/16327
Sort int `json:"sort"` // 排序方式
}
func NewFileTree() *FileTree {
@ -49,5 +49,6 @@ func NewFileTree() *FileTree {
CloseTabsOnStart: false,
UseSingleLineSave: util.UseSingleLineSave,
LargeFileWarningSize: util.LargeFileWarningSize,
CreateDocAtTop: func() *bool { b := false; return &b }(),
}
}