🎨 支持笔记本设置独立的排序规则 https://github.com/siyuan-note/siyuan/issues/3623

This commit is contained in:
Liang Ding 2023-02-04 16:31:20 +08:00
parent 4103b380ab
commit 72a8132775
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 10 additions and 0 deletions

View file

@ -16,6 +16,8 @@
package conf
import "github.com/siyuan-note/siyuan/kernel/util"
// BoxConf 维护 .siyuan/conf.json 笔记本配置。
type BoxConf struct {
Name string `json:"name"` // 笔记本名称
@ -26,6 +28,7 @@ type BoxConf struct {
DocCreateSavePath string `json:"docCreateSavePath"` // 新建文档存储路径
DailyNoteSavePath string `json:"dailyNoteSavePath"` // 新建日记存储路径
DailyNoteTemplatePath string `json:"dailyNoteTemplatePath"` // 新建日记使用的模板路径
SortMode int `json:"sortMode"` // 排序方式
}
func NewBoxConf() *BoxConf {
@ -34,5 +37,6 @@ func NewBoxConf() *BoxConf {
Closed: true,
DailyNoteSavePath: "/daily note/{{now | date \"2006/01\"}}/{{now | date \"2006-01-02\"}}",
DailyNoteTemplatePath: "",
SortMode: util.SortModeFileTree,
}
}