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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
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
}
...
```
|