From ad8f9f55ea79a4d587aecc69698808da82de3d62 Mon Sep 17 00:00:00 2001 From: somhairle Date: Tue, 21 Apr 2026 20:40:27 +0800 Subject: 二〇二六年四月二十一日 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...226\207\344\273\266\344\275\234\347\224\250.md" | 169 +++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 "source/_posts/Obsidian-Vault-\347\232\204-obsidian-\347\233\256\345\275\225\344\270\255\347\232\204\345\220\204\346\226\207\344\273\266\344\275\234\347\224\250.md" (limited to 'source/_posts/Obsidian-Vault-的-obsidian-目录中的各文件作用.md') diff --git "a/source/_posts/Obsidian-Vault-\347\232\204-obsidian-\347\233\256\345\275\225\344\270\255\347\232\204\345\220\204\346\226\207\344\273\266\344\275\234\347\224\250.md" "b/source/_posts/Obsidian-Vault-\347\232\204-obsidian-\347\233\256\345\275\225\344\270\255\347\232\204\345\220\204\346\226\207\344\273\266\344\275\234\347\224\250.md" new file mode 100644 index 00000000..98d4b6c1 --- /dev/null +++ "b/source/_posts/Obsidian-Vault-\347\232\204-obsidian-\347\233\256\345\275\225\344\270\255\347\232\204\345\220\204\346\226\207\344\273\266\344\275\234\347\224\250.md" @@ -0,0 +1,169 @@ +--- +title: Obsidian Vault 的 .obsidian 目录中的各文件作用 +date: 2024-10-06 09:56:25 +tags: [Technique] +--- + +一个简单的例子是: + +``` +.obsidian +├── appearance.json +├── app.json +├── community-plugins.json +├── core-plugins.json +├── core-plugins-migration.json +├── plugins +│   └── obsidian-git +│   ├── data.json +│   ├── main.js +│   ├── manifest.json +│   └── styles.css +└── workspace.json +``` + +其中: +- `appearance.json` 包含当前 vault 的外观设置,例如主题、字体大小和行高,例如: +```json +{ + "interfaceFontFamily": "HarmonyOS Sans SC", + "textFontFamily": "HarmonyOS Sans SC", + "monospaceFontFamily": "FrankMono", + "accentColor": "", + "cssTheme": "Listive", + "nativeMenus": false +} +``` + +- `app.json` 包含了编辑器的一些设置,例如 vim mode 和断行设置: +```json +{ + "vimMode": true, + "strictLineBreaks": false, + "promptDelete": false +} +``` + +- `community-plugins.json`:包含有关当前 vault 中安装的社区插件的数据,例如: +```json +[ + "dataview", + "novel-word-count", + "remotely-save", + "obsidian-tasks-plugin", + "obsidian-style-settings", + "obsidian-advanced-slides", + "calendar", + "3d-graph-new", + "webpage-html-export" +] +``` + +- `core-plugins.json`: 就是当前 valut 中的所有内置插件,例如: +```json + "file-explorer", + "global-search", + "switcher", + "graph", + "backlink", + "canvas", + "outgoing-link", + "tag-pane", + "page-preview", + "daily-notes", + "templates", + "note-composer", + "command-palette", + "editor-status", + "bookmarks", + "outline", + "word-count", + "file-recovery" +] +``` + + - `core-plugins-migration.json`: 就是 `core-plugins.json` 中的内置插件的开关状态,例如: +```json +{ + "file-explorer": true, + "global-search": true, + "switcher": true, + "graph": true, + "backlink": true, + "canvas": true, + "outgoing-link": true, + "tag-pane": true, + "properties": false, + "page-preview": true, + "daily-notes": true, + "templates": true, + "note-composer": true, + "command-palette": true, + "slash-command": false, + "editor-status": true, + "bookmarks": true, + "markdown-importer": false, + "zk-prefixer": false, + "random-note": false, + "outline": true, + "word-count": true, + "slides": false, + "audio-recorder": false, + "workspaces": false, + "file-recovery": true, + "publish": false, + "sync": false +} +``` +- `workspace.json`:包含有关当前 Vault 工作区的数据,包括打开的文件、窗口和布局的设置,例如: +```json +{ + "main": { +   "id": "7bc59326f5497d4a", +   "type": "split", +   "children": [ +     { +       "id": "06fc674d29eb4c3a", +       "type": "tabs", +       "children": [ +         { +           "id": "97d62f14e2fad2f0", +           "type": "leaf", +           "state": { +             "type": "markdown", +             "state": { +               "file": "README.md", +               "mode": "source", +               "source": false +             } +           } +         }, +         { +           "id": "c94063b5e5f6f995", +           "type": "leaf", +           "state": { +             "type": "markdown", +             "state": { +               "file": "README.md", +               "mode": "source", +               "source": false +             } +           } +         }, +         { +           "id": "143d5ea7a56d7e1d", +           "type": "leaf", +           "state": { +             "type": "markdown", +             "state": { +               "file": "测试.md", +               "mode": "source", +               "source": false +             } +           } +         } +       ], +       "currentTab": 2 +     } + ... +``` -- cgit v1.2.3