🎨 添加文档树 删除文档确认 选项 https://github.com/siyuan-note/siyuan/issues/5225

This commit is contained in:
Liang Ding 2022-06-18 23:23:16 +08:00
parent 0361de475f
commit 303ba0cf48
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 15 additions and 7 deletions

View file

@ -544,6 +544,8 @@
"md39": "PlantUML Serve Address", "md39": "PlantUML Serve Address",
"md40": "Leave blank to restore default <code>https://www.plantuml.com/plantuml/svg/~1</code>", "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", "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", "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 /)", "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", "fileTree7": "Open in the current tab",

View file

@ -544,6 +544,8 @@
"md39": "Adresse Servo PlantUML", "md39": "Adresse Servo PlantUML",
"md40": "Laissez vide pour restaurer <code>https://www.plantuml.com/plantuml/svg/~1/code> par défaut", "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", "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", "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 /).", "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", "fileTree7": "Ouvrir dans l'Onglet actuel",

View file

@ -544,6 +544,8 @@
"md39": "PlantUML 伺服地址", "md39": "PlantUML 伺服地址",
"md40": "留空將恢復默認值 <code>https://www.plantuml.com/plantuml/svg/~1</code>", "md40": "留空將恢復默認值 <code>https://www.plantuml.com/plantuml/svg/~1</code>",
"fileTree2": "在編輯器切換分頁時文檔樹會自動選中當前的文檔", "fileTree2": "在編輯器切換分頁時文檔樹會自動選中當前的文檔",
"fileTree3": "刪除文檔時不需要確認",
"fileTree4": "不啟用時每次刪除文檔都會彈出確認框",
"fileTree5": "塊引新建文檔存放位置", "fileTree5": "塊引新建文檔存放位置",
"fileTree6": "使用 <code>((</code> 時新建文檔的存放路徑(例如 /folder1/folder2/,不以 / 開頭則使用當前文檔相對路徑)", "fileTree6": "使用 <code>((</code> 時新建文檔的存放路徑(例如 /folder1/folder2/,不以 / 開頭則使用當前文檔相對路徑)",
"fileTree7": "在當前分頁中打開", "fileTree7": "在當前分頁中打開",

View file

@ -545,6 +545,8 @@
"md39": "PlantUML 伺服地址", "md39": "PlantUML 伺服地址",
"md40": "留空将恢复默认值 <code>https://www.plantuml.com/plantuml/svg/~1</code>", "md40": "留空将恢复默认值 <code>https://www.plantuml.com/plantuml/svg/~1</code>",
"fileTree2": "在编辑器页签切换时文档树会自动选中当前的文档", "fileTree2": "在编辑器页签切换时文档树会自动选中当前的文档",
"fileTree3": "删除文档时不需要确认",
"fileTree4": "不启用时每次删除文档都会弹出确认框",
"fileTree5": "块引新建文档存放位置", "fileTree5": "块引新建文档存放位置",
"fileTree6": "使用 <code>((</code> 时新建文档的存放路径(例如 /folder1/folder2/,不以 / 开头则使用当前文档相对路径)", "fileTree6": "使用 <code>((</code> 时新建文档的存放路径(例如 /folder1/folder2/,不以 / 开头则使用当前文档相对路径)",
"fileTree7": "在当前页签中打开", "fileTree7": "在当前页签中打开",

View file

@ -27,7 +27,7 @@ type FileTree struct {
CreateDocNameTemplate string `json:"createDocNameTemplate"` // 新建文档名模板 CreateDocNameTemplate string `json:"createDocNameTemplate"` // 新建文档名模板
MaxListCount int `json:"maxListCount"` // 最大列出数量 MaxListCount int `json:"maxListCount"` // 最大列出数量
AllowCreateDeeper bool `json:"allowCreateDeeper"` // 允许创建超过 7 层深度的子文档 AllowCreateDeeper bool `json:"allowCreateDeeper"` // 允许创建超过 7 层深度的子文档
RemoveDocConfirm int `json:"removeDocConfirm"` // 删除文档时是否需要确认0需要确认1不需要确认 RemoveDocWithoutConfirm int `json:"removeDocWithoutConfirm"` // 删除文档时是否不需要确认
Sort int `json:"sort"` // 排序方式 Sort int `json:"sort"` // 排序方式
} }