mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 支持配置反链面板提及默认展开数 https://github.com/siyuan-note/siyuan/issues/7743
This commit is contained in:
parent
c84338911a
commit
f569df8efd
2 changed files with 5 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ type Editor struct {
|
||||||
RTL bool `json:"rtl"` // 是否从右到左显示
|
RTL bool `json:"rtl"` // 是否从右到左显示
|
||||||
Spellcheck bool `json:"spellcheck"` // 是否启用拼写检查
|
Spellcheck bool `json:"spellcheck"` // 是否启用拼写检查
|
||||||
BacklinkExpandCount int `json:"backlinkExpandCount"` // 反向链接默认展开数量
|
BacklinkExpandCount int `json:"backlinkExpandCount"` // 反向链接默认展开数量
|
||||||
|
BackmentionExpandCount int `json:"backmentionExpandCount"` // 反链提及默认展开数量
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEditor() *Editor {
|
func NewEditor() *Editor {
|
||||||
|
|
@ -71,5 +72,6 @@ func NewEditor() *Editor {
|
||||||
Justify: false,
|
Justify: false,
|
||||||
RTL: false,
|
RTL: false,
|
||||||
BacklinkExpandCount: 8,
|
BacklinkExpandCount: 8,
|
||||||
|
BackmentionExpandCount: 8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -297,6 +297,9 @@ func InitConf() {
|
||||||
if 0 > Conf.Editor.BacklinkExpandCount {
|
if 0 > Conf.Editor.BacklinkExpandCount {
|
||||||
Conf.Editor.BacklinkExpandCount = 0
|
Conf.Editor.BacklinkExpandCount = 0
|
||||||
}
|
}
|
||||||
|
if 0> Conf.Editor.BackmentionExpandCount {
|
||||||
|
Conf.Editor.BackmentionExpandCount = 0
|
||||||
|
}
|
||||||
|
|
||||||
if nil == Conf.Search {
|
if nil == Conf.Search {
|
||||||
Conf.Search = conf.NewSearch()
|
Conf.Search = conf.NewSearch()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue