-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
251 lines (251 loc) · 9.44 KB
/
Copy pathpackage.json
File metadata and controls
251 lines (251 loc) · 9.44 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
"name": "obsidian-vfs",
"displayName": "Obsidian VFS",
"description": "Browse, search, and edit your Obsidian vault directly in VSCode via a virtual file system (obs://)",
"version": "1.2.2",
"private": true,
"publisher": "otaviof",
"engines": {
"vscode": "^1.100.0"
},
"categories": [
"Other"
],
"keywords": [
"obsidian",
"vault",
"markdown",
"wikilinks",
"virtual-filesystem",
"knowledge-base"
],
"activationEvents": [
"onFileSystem:obs",
"onStartupFinished"
],
"repository": {
"type": "git",
"url": "https://github.com/otaviof/obsidian-vfs",
"directory": "packages/vscode"
},
"icon": "resources/obsidian-vfs.png",
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "obsidianVFS.mount",
"title": "Obsidian VFS: Mount Folder"
},
{
"command": "obsidianVFS.mountNote",
"title": "Obsidian VFS: Mount Note"
},
{
"command": "obsidianVFS.unmount",
"title": "Obsidian VFS: Unmount Entry"
},
{
"command": "obsidianVFS.openInObsidian",
"title": "Obsidian VFS: Open in Obsidian"
},
{
"command": "obsidianVFS.searchNotes",
"title": "Obsidian VFS: Search Notes"
},
{
"command": "obsidianVFS.copyPath",
"title": "Obsidian VFS: Copy Path"
},
{
"command": "obsidianVFS.moveIntoVault",
"title": "Obsidian VFS: Move into Vault"
},
{
"command": "obsidianVFS.duplicateIntoVault",
"title": "Obsidian VFS: Duplicate into Vault"
},
{
"command": "obsidianVFS.reloadVault",
"title": "Obsidian VFS: Reload Vault"
}
],
"keybindings": [
{
"command": "obsidianVFS.copyPath",
"key": "shift+alt+cmd+c",
"when": "resourceScheme == obs"
}
],
"views": {
"explorer": [
{
"icon": "resources/obsidian-vfs.svg",
"id": "obsidianVFS",
"name": "Obsidian VFS"
}
]
},
"viewsWelcome": [
{
"view": "obsidianVFS",
"contents": "No vault entries mounted.\n[Mount Folder](command:obsidianVFS.mount)\n[Mount Note](command:obsidianVFS.mountNote)"
}
],
"menus": {
"view/item/context": [
{
"command": "obsidianVFS.openInObsidian",
"when": "viewItem == obsFile && obsidianVFS.explorer.contextMenu",
"group": "navigation"
}
],
"explorer/context": [
{
"command": "obsidianVFS.moveIntoVault",
"when": "resourceScheme == file && obsidianVFS.explorer.contextMenu",
"group": "2_obsidianVFS"
},
{
"command": "obsidianVFS.duplicateIntoVault",
"when": "resourceScheme == file && obsidianVFS.explorer.contextMenu",
"group": "2_obsidianVFS"
}
],
"editor/title": [
{
"command": "obsidianVFS.moveIntoVault",
"when": "resourceScheme == file && obsidianVFS.explorer.contextMenu",
"group": "2_obsidianVFS"
},
{
"command": "obsidianVFS.duplicateIntoVault",
"when": "resourceScheme == file && obsidianVFS.explorer.contextMenu",
"group": "2_obsidianVFS"
}
]
},
"configuration": {
"title": "Obsidian VFS",
"properties": {
"obsidianVFS.cliPath": {
"type": "string",
"default": "",
"description": "Path to the Obsidian CLI binary (empty = auto-detect per platform, or set OBSIDIAN_VFS_CLI_PATH env var)"
},
"obsidianVFS.timeoutMs": {
"type": "number",
"default": 10000,
"description": "CLI operation timeout in milliseconds"
},
"obsidianVFS.autoMount": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Vault-relative paths (folders or files) to display in the Explorer tree view and workspace folders"
},
"obsidianVFS.depthLimit": {
"type": "number",
"default": 4,
"minimum": 0,
"maximum": 10,
"description": "Maximum directory depth when listing vault folders and notes (0 = unlimited, 1 = top-level only)"
},
"obsidianVFS.vault.gitIgnore": {
"type": "boolean",
"default": true,
"markdownDescription": "Add the vault to `git.ignoredRepositories` so VS Code's Git extension skips it. Takes effect when `workspace.enabled` is true."
},
"obsidianVFS.vault.excludeBlocked": {
"type": "boolean",
"default": true,
"markdownDescription": "Hide `blocked` folders (from `.obsidian/obsidian-vfs.json`) via `files.exclude` patterns in the vault's `.vscode/settings.json`."
},
"obsidianVFS.vault.excludeDotfiles": {
"type": "boolean",
"default": true,
"markdownDescription": "Hide dotfiles and dotdirs at the vault root (`.obsidian`, `.trash`, etc.) via `files.exclude` patterns. Controlled by `vault.excludeDotfilePattern`."
},
"obsidianVFS.vault.excludeDotfilePattern": {
"type": "string",
"default": "^\\.",
"markdownDescription": "Regex tested against entry names at the vault root. Only dotfiles matching this pattern are hidden when `vault.excludeDotfiles` is enabled. Default `^\\\\.` matches all dotfiles. Example: `^\\\\.(obsidian|trash)` to hide only `.obsidian` and `.trash`."
},
"obsidianVFS.vault.mode": {
"type": "string",
"enum": [
"rw",
"ro",
"partial"
],
"default": "rw",
"markdownDescription": "Vault access mode controlling write operations through the `obs://` file system.\n- `rw`: Read-write — all writes permitted (default).\n- `ro`: Read-only — no writes allowed.\n- `partial`: Only writes to `autoMount` paths are allowed; everything else is read-only.\n\nThis setting protects tree view operations, drag-and-drop, and `obs://` editor saves. The `file://` workspace folder (used for Quick Open and Search) is not affected."
},
"obsidianVFS.statusBar.enabled": {
"type": "boolean",
"default": true,
"description": "Show vault name and mode in the status bar"
},
"obsidianVFS.explorer.enabled": {
"type": "boolean",
"default": true,
"description": "Show the Obsidian VFS tree view in the Explorer sidebar"
},
"obsidianVFS.explorer.contextMenu": {
"type": "boolean",
"default": true,
"description": "Show Obsidian VFS items in right-click context menus (Explorer, editor title, tree view)"
},
"obsidianVFS.explorer.title": {
"type": "string",
"default": "",
"description": "Custom title for the Explorer tree view (defaults to \"obs://<vault_name>\")"
},
"obsidianVFS.workspace.enabled": {
"type": "boolean",
"default": true,
"description": "Add the vault as a file:// workspace folder for Quick Open (Cmd+P) and Search (Ctrl+Shift+F). Non-autoMount content is hidden via files.exclude patterns managed by the extension. Requires at least one local folder open and at least one autoMount entry."
},
"obsidianVFS.workspace.codeWorkspaceFile": {
"type": "boolean",
"default": false,
"description": "Generate a .code-workspace file named after the project. Avoids the 'Untitled (Workspace)' label caused by dynamic workspace folder injection. The file contains a file:// vault folder entry; files.exclude patterns are written to its settings section. Opening the file reloads the window."
},
"obsidianVFS.workspace.excludeUnmountedFolders": {
"type": "boolean",
"default": true,
"markdownDescription": "Hide sibling directories at partially-mounted vault levels that are not in `autoMount`. When disabled, all directories are visible in Explorer and Quick Open."
},
"obsidianVFS.workspace.excludeUnmountedFiles": {
"type": "boolean",
"default": true,
"markdownDescription": "Hide files at partially-mounted vault levels matching `workspace.excludeUnmountedFilePattern`. When disabled, all files are visible regardless of the pattern."
},
"obsidianVFS.workspace.excludeUnmountedFilePattern": {
"type": "string",
"default": "\\.(md|base|canvas)$",
"markdownDescription": "Regex pattern tested against file basenames at partially-mounted vault levels. Matching files are hidden from Explorer via `files.exclude` glob patterns scoped to the vault folder. Set to empty string to disable. Examples: `\\.(md|base|canvas|pdf)$` (with attachments), `\\.base$` (single extension), `^README` (by name prefix)."
}
}
}
},
"capabilities": {
"virtualWorkspaces": true
},
"scripts": {
"build": "tsc --noEmit && node esbuild.mjs",
"package": "vsce package --no-dependencies --allow-missing-repository -o obsidian-vfs.vsix",
"publish": "vsce publish --packagePath obsidian-vfs.vsix",
"clean": "rm -rf dist *.vsix"
},
"dependencies": {
"@obsidian-vfs/core": "workspace:*"
},
"devDependencies": {
"@types/vscode": "^1.100.0",
"@vscode/vsce": "^3.0.0",
"esbuild": "^0.28.0",
"jsonc-parser": "^3.3.1"
}
}