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: https://github.com/siyuan-note/siyuan/issues/5189
Vanessa0afaf36e818a
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex cbb49ef51f..8017691cb8 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -557,6 +557,8 @@"fileTree6": "使用 <code>((</code> 时新建文档的存放路径(例如 /folder1/folder2/,不以 / 开头则使用当前文档相对路径)","fileTree7": "在当前页签中打开","fileTree8": "新打开的文档页签将会替换没有修改过的页签",+ "fileTree9": "TODO",+ "fileTree10": "TODOTODO","fileTree11": "新建日记","fileTree12": "新建文档名模板","fileTree13": "使用该模板片段进行命名,例如 <code>{{now | date \"20060102150405\"}}</code>",diff --git a/app/src/config/fileTree.ts b/app/src/config/fileTree.tsindex b38e9bb83a..caa6147211 100644--- a/app/src/config/fileTree.ts+++ b/app/src/config/fileTree.ts@@ -19,6 +19,14 @@ export const fileTree = {<span class="fn__space"></span><input class="b3-switch fn__flex-center" id="openFilesUseCurrentTab" type="checkbox"${window.siyuan.config.fileTree.openFilesUseCurrentTab ? " checked" : ""}/></label>+<label class="fn__flex b3-label">+ <div class="fn__flex-1">+ ${window.siyuan.languages.fileTree9}+ <div class="b3-label__text">${window.siyuan.languages.fileTree10}</div>+ </div>+ <span class="fn__space"></span>+ <input class="b3-switch fn__flex-center" id="closeTabsOnStart" type="checkbox"${window.siyuan.config.fileTree.closeTabsOnStart ? " checked" : ""}/>+</label><label class="fn__flex b3-label"><div class="fn__flex-1">${window.siyuan.languages.fileTree18}@@ -75,6 +83,7 @@ export const fileTree = {refCreateSavePath: (fileTree.element.querySelector("#refCreateSavePath") as HTMLInputElement).value,createDocNameTemplate: (fileTree.element.querySelector("#createDocNameTemplate") as HTMLInputElement).value,openFilesUseCurrentTab: (fileTree.element.querySelector("#openFilesUseCurrentTab") as HTMLInputElement).checked,+ closeTabsOnStart: (fileTree.element.querySelector("#closeTabsOnStart") as HTMLInputElement).checked,allowCreateDeeper: (fileTree.element.querySelector("#allowCreateDeeper") as HTMLInputElement).checked,removeDocWithoutConfirm: (fileTree.element.querySelector("#removeDocWithoutConfirm") as HTMLInputElement).checked,maxListCount: parseInt((fileTree.element.querySelector("#maxListCount") as HTMLInputElement).value),diff --git a/app/src/config/search.ts b/app/src/config/search.tsindex 40e21f01aa..498ba34158 100644--- a/app/src/config/search.ts+++ b/app/src/config/search.ts@@ -18,8 +18,9 @@ export const initConfigSearch = (element: HTMLElement) => {]),// 文档树- getLang(["selectOpen", "tabLimit", "fileTree", "fileTree2", "fileTree3", "fileTree4",- "fileTree5", "fileTree6", "fileTree7", "fileTree8", "fileTree12", "fileTree13", "fileTree15", "fileTree16", "fileTree17"]),+ getLang(["selectOpen", "tabLimit", "fileTree", "fileTree2", "fileTree3", "fileTree4", "fileTree5",+ "fileTree6", "fileTree7", "fileTree8", "fileTree9", "fileTree10", "fileTree12", "fileTree13", "fileTree15",+ "fileTree16", "fileTree17"]),// 图片getLang(["assets", "clearUnused"]),diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex aa5367c1ea..9903a4793f 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -241,6 +241,7 @@ declare interface IAppearance {}declare interface IFileTree {+ closeTabsOnStart: booleanalwaysSelectOpenedFile: booleanopenFilesUseCurrentTab: booleanremoveDocWithoutConfirm: boolean