diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json index 22c3baa0d..018548533 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 https://www.plantuml.com/plantuml/svg/~1", "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 ((, 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.json index cdb1c1e3e..1149673f5 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 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 ((, 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.json index 9a0092b44..ba20d9e3f 100644 --- a/app/appearance/langs/zh_CHT.json +++ b/app/appearance/langs/zh_CHT.json @@ -544,6 +544,8 @@ "md39": "PlantUML 伺服地址", "md40": "留空將恢復默認值 https://www.plantuml.com/plantuml/svg/~1", "fileTree2": "在編輯器切換分頁時文檔樹會自動選中當前的文檔", + "fileTree3": "刪除文檔時不需要確認", + "fileTree4": "不啟用時每次刪除文檔都會彈出確認框", "fileTree5": "塊引新建文檔存放位置", "fileTree6": "使用 (( 時新建文檔的存放路徑(例如 /folder1/folder2/,不以 / 開頭則使用當前文檔相對路徑)", "fileTree7": "在當前分頁中打開", diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json index 6291b60bc..095c08e18 100644 --- a/app/appearance/langs/zh_CN.json +++ b/app/appearance/langs/zh_CN.json @@ -545,6 +545,8 @@ "md39": "PlantUML 伺服地址", "md40": "留空将恢复默认值 https://www.plantuml.com/plantuml/svg/~1", "fileTree2": "在编辑器页签切换时文档树会自动选中当前的文档", + "fileTree3": "删除文档时不需要确认", + "fileTree4": "不启用时每次删除文档都会弹出确认框", "fileTree5": "块引新建文档存放位置", "fileTree6": "使用 (( 时新建文档的存放路径(例如 /folder1/folder2/,不以 / 开头则使用当前文档相对路径)", "fileTree7": "在当前页签中打开", diff --git a/kernel/conf/filetree.go b/kernel/conf/filetree.go index 355ac8773..ded15e206 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"` // 排序方式 }