An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve backlink panel expansion configuration https://github.com/siyuan-note/siyuan/issues/11262
Daniel77714901756d
diff --git a/app/src/mobile/settings/editor.ts b/app/src/mobile/settings/editor.tsindex 4e5d805210..b9dfd0cb32 100644--- a/app/src/mobile/settings/editor.ts+++ b/app/src/mobile/settings/editor.ts@@ -197,13 +197,13 @@ export const initEditor = () => {<div class="b3-label fn__displayblock">${window.siyuan.languages.backlinkExpand}<span class="fn__hr"></span>- <input class="b3-text-field fn__block" id="backlinkExpandCount" type="number" min="0" max="512" value="${window.siyuan.config.editor.backlinkExpandCount}"/>+ <input class="b3-text-field fn__block" id="backlinkExpandCount" type="number" min="-1" max="512" value="${window.siyuan.config.editor.backlinkExpandCount}"/><div class="b3-label__text">${window.siyuan.languages.backlinkExpandTip}</div></div><div class="b3-label fn__displayblock">${window.siyuan.languages.backmentionExpand}<span class="fn__hr"></span>- <input class="b3-text-field fn__block" id="backmentionExpandCount" type="number" min="0" max="512" value="${window.siyuan.config.editor.backmentionExpandCount}"/>+ <input class="b3-text-field fn__block" id="backmentionExpandCount" type="number" min="-1" max="512" value="${window.siyuan.config.editor.backmentionExpandCount}"/><div class="b3-label__text">${window.siyuan.languages.backmentionExpandTip}</div></div><div class="b3-label fn__displayblock">diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 5a78f78503..905af6ecce 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -249,11 +249,11 @@ func InitConf() {if conf.MaxDynamicLoadBlocks < Conf.Editor.DynamicLoadBlocks {Conf.Editor.DynamicLoadBlocks = conf.MaxDynamicLoadBlocks}- if 0 > Conf.Editor.BacklinkExpandCount {- Conf.Editor.BacklinkExpandCount = 0+ if -1 > Conf.Editor.BacklinkExpandCount {+ Conf.Editor.BacklinkExpandCount = -1}- if 0 > Conf.Editor.BackmentionExpandCount {- Conf.Editor.BackmentionExpandCount = 0+ if -1 > Conf.Editor.BackmentionExpandCount {+ Conf.Editor.BackmentionExpandCount = -1}if nil == Conf.Editor.Markdown {Conf.Editor.Markdown = &util.Markdown{}