🎨 在 设置 - 搜索 中分别增加虚拟引用和反链提及 最大关键字数量限制 https://github.com/siyuan-note/siyuan/issues/6603

This commit is contained in:
Liang Ding 2022-11-16 16:22:34 +08:00
parent 1bb3870243
commit 87fde9a1e8
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
9 changed files with 19 additions and 9 deletions

View file

@ -278,6 +278,12 @@ func InitConf() {
if 1 > Conf.Search.Limit {
Conf.Search.Limit = 64
}
if 1 > Conf.Search.BacklinkMentionLimit {
Conf.Search.BacklinkMentionLimit = 512
}
if 1 > Conf.Search.VirtualRefLimit {
Conf.Search.VirtualRefLimit = 512
}
if nil == Conf.Stat {
Conf.Stat = conf.NewStat()