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/5225
Liang Ding303ba0cf489e
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 22c3baa0d3..018548533c 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -544,6 +544,8 @@"md39": "PlantUML Serve Address","md40": "Leave blank to restore default <code>https://www.plantuml.com/plantuml/svg/~1</code>","fileTree2": "The doc tree will automatically select the current document when the editor tab is switched",+ "fileTree3": "No confirmation required when deleting documents",+ "fileTree4": "If not enabled, a confirmation box will pop up every time you delete a document","fileTree5": "Ref create doc save location","fileTree6": "When using <code>((</code>, the save path of the new document (for example, /folder1/folder2/, the relative path of the current doc is used if it does not start with /)","fileTree7": "Open in the current tab",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex cdb1c1e3eb..1149673f59 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -544,6 +544,8 @@"md39": "Adresse Servo PlantUML","md40": "Laissez vide pour restaurer <code>https://www.plantuml.com/plantuml/svg/~1/code> par défaut","fileTree2": "L'arbre des Docs sélectionne automatiquement le document en cours lorsque l'on change d'onglet d'édition",+ "fileTree3": "Aucune confirmation requise lors de la suppression de documents",+ "fileTree4": "Si non activé, une boîte de confirmation apparaîtra à chaque fois que vous supprimerez un document","fileTree5": "Référence créer doc enregistrer emplacement","fileTree6": "Lors de l'utilisation de <code>((</code>, le chemin d'enregistrement du nouveau document (par exemple, /dossier1/ dossier2/, le chemin relatif du doc actuel est utilisé s'il ne commence pas par /).","fileTree7": "Ouvrir dans l'Onglet actuel",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 9a0092b44e..ba20d9e3ff 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -544,6 +544,8 @@"md39": "PlantUML 伺服地址","md40": "留空將恢復默認值 <code>https://www.plantuml.com/plantuml/svg/~1</code>","fileTree2": "在編輯器切換分頁時文檔樹會自動選中當前的文檔",+ "fileTree3": "刪除文檔時不需要確認",+ "fileTree4": "不啟用時每次刪除文檔都會彈出確認框","fileTree5": "塊引新建文檔存放位置","fileTree6": "使用 <code>((</code> 時新建文檔的存放路徑(例如 /folder1/folder2/,不以 / 開頭則使用當前文檔相對路徑)","fileTree7": "在當前分頁中打開",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex 6291b60bce..095c08e18f 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -545,6 +545,8 @@"md39": "PlantUML 伺服地址","md40": "留空将恢复默认值 <code>https://www.plantuml.com/plantuml/svg/~1</code>","fileTree2": "在编辑器页签切换时文档树会自动选中当前的文档",+ "fileTree3": "删除文档时不需要确认",+ "fileTree4": "不启用时每次删除文档都会弹出确认框","fileTree5": "块引新建文档存放位置","fileTree6": "使用 <code>((</code> 时新建文档的存放路径(例如 /folder1/folder2/,不以 / 开头则使用当前文档相对路径)","fileTree7": "在当前页签中打开",diff --git a/kernel/conf/filetree.go b/kernel/conf/filetree.goindex 355ac8773d..ded15e2068 100644--- a/kernel/conf/filetree.go+++ b/kernel/conf/filetree.go@@ -21,13 +21,13 @@ import ()type FileTree struct {- AlwaysSelectOpenedFile bool `json:"alwaysSelectOpenedFile"` // 是否自动选中当前打开的文件- OpenFilesUseCurrentTab bool `json:"openFilesUseCurrentTab"` // 在当前页签打开文件- RefCreateSavePath string `json:"refCreateSavePath"` // 块引时新建文档存储文件夹路径- CreateDocNameTemplate string `json:"createDocNameTemplate"` // 新建文档名模板- MaxListCount int `json:"maxListCount"` // 最大列出数量- AllowCreateDeeper bool `json:"allowCreateDeeper"` // 允许创建超过 7 层深度的子文档- RemoveDocConfirm int `json:"removeDocConfirm"` // 删除文档时是否需要确认,0:需要确认,1:不需要确认+ AlwaysSelectOpenedFile bool `json:"alwaysSelectOpenedFile"` // 是否自动选中当前打开的文件+ OpenFilesUseCurrentTab bool `json:"openFilesUseCurrentTab"` // 在当前页签打开文件+ RefCreateSavePath string `json:"refCreateSavePath"` // 块引时新建文档存储文件夹路径+ CreateDocNameTemplate string `json:"createDocNameTemplate"` // 新建文档名模板+ MaxListCount int `json:"maxListCount"` // 最大列出数量+ AllowCreateDeeper bool `json:"allowCreateDeeper"` // 允许创建超过 7 层深度的子文档+ RemoveDocWithoutConfirm int `json:"removeDocWithoutConfirm"` // 删除文档时是否不需要确认Sort int `json:"sort"` // 排序方式}