From f569df8efd59cbba806b454016700ee5185eec66 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 22 Mar 2023 14:35:22 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8F=8D=E9=93=BE=E9=9D=A2=E6=9D=BF=E6=8F=90=E5=8F=8A=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=B1=95=E5=BC=80=E6=95=B0=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/7743?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/conf/editor.go | 2 ++ kernel/model/conf.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/kernel/conf/editor.go b/kernel/conf/editor.go index 266602153..7f83c5766 100644 --- a/kernel/conf/editor.go +++ b/kernel/conf/editor.go @@ -44,6 +44,7 @@ type Editor struct { RTL bool `json:"rtl"` // 是否从右到左显示 Spellcheck bool `json:"spellcheck"` // 是否启用拼写检查 BacklinkExpandCount int `json:"backlinkExpandCount"` // 反向链接默认展开数量 + BackmentionExpandCount int `json:"backmentionExpandCount"` // 反链提及默认展开数量 } func NewEditor() *Editor { @@ -71,5 +72,6 @@ func NewEditor() *Editor { Justify: false, RTL: false, BacklinkExpandCount: 8, + BackmentionExpandCount: 8, } } diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 8f942e373..6b9557d5f 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -297,6 +297,9 @@ func InitConf() { if 0 > Conf.Editor.BacklinkExpandCount { Conf.Editor.BacklinkExpandCount = 0 } + if 0> Conf.Editor.BackmentionExpandCount { + Conf.Editor.BackmentionExpandCount = 0 + } if nil == Conf.Search { Conf.Search = conf.NewSearch()