一个简单的例子是:

1
2
3
4
5
6
7
8
9
10
11
12
13
.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 的外观设置,例如主题、字体大小和行高,例如:
1
2
3
4
5
6
7
8
{
 "interfaceFontFamily": "HarmonyOS Sans SC",
 "textFontFamily": "HarmonyOS Sans SC",
 "monospaceFontFamily": "FrankMono",
 "accentColor": "",
 "cssTheme": "Listive",
 "nativeMenus": false
}
  • app.json 包含了编辑器的一些设置,例如 vim mode 和断行设置:
1
2
3
4
5
{
 "vimMode": true,
 "strictLineBreaks": false,
 "promptDelete": false
}
  • community-plugins.json:包含有关当前 vault 中安装的社区插件的数据,例如:
1
2
3
4
5
6
7
8
9
10
11
[
 "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 中的所有内置插件,例如:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 "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` 中的内置插件的开关状态,例如:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
 "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 工作区的数据,包括打开的文件、窗口和布局的设置,例如:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
 "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
     }
...