@statiolake/coc-explorer 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +14 -0
  3. package/lib/index.js +481 -0
  4. package/package.json +152 -0
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 statiolake
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # coc-explorer
2
+
3
+ Lean filesystem explorer for coc.nvim. It mounts an Explorer TreeView in the
4
+ Explorer View Container selected from the primary Activity Bar provided by
5
+ `@statiolake/coc-ui`, with open, split, reveal,
6
+ root-change, refresh, and filesystem actions. Files open and folders toggle on
7
+ single click; right click opens the item's context action menu through
8
+ `@statiolake/coc-ui`. Folder state is shown with configurable Nerd Font icons;
9
+ files intentionally have no type-specific icons.
10
+
11
+ View actions define both the right-click context menu and NvimTree-style local
12
+ keys: `o`, `<C-x>`, `<C-v>`, `<C-t>`, `a`, `d`, `r`, `R`, `gy`, `.`, `s`, `-`,
13
+ `+`, `<BS>`, and `P`. Coc's native `<CR>`, `<Tab>`, `f`, `t`, and `M` TreeView
14
+ bindings remain available.
package/lib/index.js ADDED
@@ -0,0 +1,481 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ activate: () => activate
34
+ });
35
+ module.exports = __toCommonJS(index_exports);
36
+ var import_node_fs = require("node:fs");
37
+ var import_node_path = __toESM(require("node:path"));
38
+ var import_coc = require("coc.nvim");
39
+ var ExplorerProvider = class {
40
+ changeEmitter = new import_coc.Emitter();
41
+ onDidChangeTreeData = this.changeEmitter.event;
42
+ expanded = /* @__PURE__ */ new Set();
43
+ root;
44
+ constructor() {
45
+ this.root = this.configuredRoot();
46
+ }
47
+ getRoot() {
48
+ return this.root;
49
+ }
50
+ setRoot(root) {
51
+ this.root = root;
52
+ this.expanded.clear();
53
+ this.refresh();
54
+ }
55
+ setExpanded(node, expanded) {
56
+ if (expanded) this.expanded.add(node.path);
57
+ else this.expanded.delete(node.path);
58
+ this.refresh(node);
59
+ }
60
+ refresh(node) {
61
+ this.changeEmitter.fire(node);
62
+ }
63
+ getTreeItem(node) {
64
+ const expanded = this.expanded.has(node.path);
65
+ const item = new import_coc.TreeItem(
66
+ import_coc.Uri.file(node.path),
67
+ node.directory ? expanded ? import_coc.TreeItemCollapsibleState.Expanded : import_coc.TreeItemCollapsibleState.Collapsed : import_coc.TreeItemCollapsibleState.None
68
+ );
69
+ item.id = node.path;
70
+ if (node.directory) {
71
+ const config = import_coc.workspace.getConfiguration("coc-explorer");
72
+ item.icon = {
73
+ text: config.get(
74
+ expanded ? "icons.folderOpen" : "icons.folderClosed",
75
+ expanded ? "\uF07C" : "\uF07B"
76
+ ),
77
+ hlGroup: "Directory"
78
+ };
79
+ }
80
+ item.command = {
81
+ command: node.directory ? "coc-explorer.toggle" : "coc-explorer.open",
82
+ title: node.directory ? "Expand or Collapse" : "Open",
83
+ arguments: [node]
84
+ };
85
+ return item;
86
+ }
87
+ async getChildren(node) {
88
+ const parent = node ?? { path: this.root, directory: true };
89
+ if (!parent.directory) return [];
90
+ try {
91
+ const entries = await import_node_fs.promises.readdir(parent.path, { withFileTypes: true });
92
+ return entries.filter((entry) => this.shouldShow(entry.name)).map((entry) => ({
93
+ path: import_node_path.default.join(parent.path, entry.name),
94
+ parent: node,
95
+ directory: entry.isDirectory()
96
+ })).sort((left, right) => {
97
+ if (left.directory !== right.directory)
98
+ return left.directory ? -1 : 1;
99
+ return import_node_path.default.basename(left.path).localeCompare(import_node_path.default.basename(right.path));
100
+ });
101
+ } catch (error) {
102
+ import_coc.window.showWarningMessage(
103
+ `Explorer cannot read ${parent.path}: ${String(error)}`
104
+ );
105
+ return [];
106
+ }
107
+ }
108
+ getParent(node) {
109
+ return node.parent;
110
+ }
111
+ dispose() {
112
+ this.changeEmitter.dispose();
113
+ }
114
+ configuredRoot() {
115
+ const configured = import_coc.workspace.getConfiguration("coc-explorer").get("root", "");
116
+ return import_node_path.default.resolve(configured || import_coc.workspace.rootPath || import_coc.workspace.cwd);
117
+ }
118
+ shouldShow(name) {
119
+ const config = import_coc.workspace.getConfiguration("coc-explorer");
120
+ if (!config.get("showHidden", true) && name.startsWith("."))
121
+ return false;
122
+ return !config.get("exclude", []).includes(name);
123
+ }
124
+ };
125
+ var Explorer = class {
126
+ constructor(ui, context) {
127
+ this.ui = ui;
128
+ const container = ui.registerViewContainer({
129
+ id: "explorer",
130
+ title: "Explorer",
131
+ icon: "\u{F024B}",
132
+ location: "primarySidebar",
133
+ order: 1
134
+ });
135
+ const view = ui.registerView({
136
+ id: "explorer.files",
137
+ containerId: "explorer",
138
+ name: "Explorer",
139
+ order: 1
140
+ });
141
+ this.tree = ui.createTreeView("explorer.files", {
142
+ treeDataProvider: this.provider,
143
+ enableFilter: true,
144
+ actions: this.viewActions()
145
+ });
146
+ context.subscriptions.push(
147
+ container,
148
+ view,
149
+ this.tree,
150
+ this.provider,
151
+ this.tree.onDidExpandElement(
152
+ ({ element }) => this.provider.setExpanded(element, true)
153
+ ),
154
+ this.tree.onDidCollapseElement(
155
+ ({ element }) => this.provider.setExpanded(element, false)
156
+ ),
157
+ import_coc.commands.registerCommand(
158
+ "coc-explorer.show",
159
+ () => this.ui.showContainer("explorer")
160
+ ),
161
+ import_coc.commands.registerCommand("coc-explorer.refresh", () => this.refresh()),
162
+ import_coc.commands.registerCommand(
163
+ "coc-explorer.changeRoot",
164
+ () => this.changeRoot()
165
+ ),
166
+ import_coc.commands.registerCommand("coc-explorer.reveal", () => this.reveal()),
167
+ import_coc.commands.registerCommand(
168
+ "coc-explorer.toggle",
169
+ (node) => this.toggle(node)
170
+ ),
171
+ import_coc.commands.registerCommand(
172
+ "coc-explorer.open",
173
+ (node) => this.open(node)
174
+ ),
175
+ import_coc.commands.registerCommand(
176
+ "coc-explorer.openSplit",
177
+ (node) => this.open(node, "split")
178
+ ),
179
+ import_coc.commands.registerCommand(
180
+ "coc-explorer.openVsplit",
181
+ (node) => this.open(node, "vsplit")
182
+ ),
183
+ import_coc.commands.registerCommand(
184
+ "coc-explorer.openTab",
185
+ (node) => this.open(node, "tabedit")
186
+ ),
187
+ import_coc.commands.registerCommand(
188
+ "coc-explorer.runSystem",
189
+ (node) => this.runSystem(node)
190
+ ),
191
+ import_coc.commands.registerCommand(
192
+ "coc-explorer.changeRootTo",
193
+ (node) => this.changeRootTo(node)
194
+ ),
195
+ import_coc.commands.registerCommand(
196
+ "coc-explorer.newFile",
197
+ (node) => this.create(node, false)
198
+ ),
199
+ import_coc.commands.registerCommand(
200
+ "coc-explorer.newFolder",
201
+ (node) => this.create(node, true)
202
+ ),
203
+ import_coc.commands.registerCommand(
204
+ "coc-explorer.create",
205
+ (node) => this.createFromInput(node)
206
+ ),
207
+ import_coc.commands.registerCommand(
208
+ "coc-explorer.rename",
209
+ (node) => this.rename(node)
210
+ ),
211
+ import_coc.commands.registerCommand(
212
+ "coc-explorer.delete",
213
+ (node) => this.delete(node)
214
+ ),
215
+ import_coc.commands.registerCommand(
216
+ "coc-explorer.copyPath",
217
+ (node) => this.copyPath(node)
218
+ ),
219
+ import_coc.workspace.onDidSaveTextDocument(() => this.scheduleRefresh()),
220
+ import_coc.workspace.onDidChangeWorkspaceFolders(() => this.resetRoot())
221
+ );
222
+ }
223
+ provider = new ExplorerProvider();
224
+ tree;
225
+ refreshTimer;
226
+ async show() {
227
+ await this.ui.showContainer("explorer");
228
+ }
229
+ async reveal() {
230
+ const document = await import_coc.workspace.document;
231
+ const uri = import_coc.Uri.parse(document.textDocument.uri);
232
+ if (uri.scheme !== "file") {
233
+ await this.show();
234
+ return;
235
+ }
236
+ const filename = uri.fsPath;
237
+ if (!this.isWithinRoot(filename))
238
+ this.provider.setRoot(import_node_path.default.dirname(filename));
239
+ await this.ui.showView("explorer.files", { focus: true });
240
+ await this.tree.reveal(this.nodeFor(filename), { focus: true, expand: 2 });
241
+ }
242
+ dispose() {
243
+ if (this.refreshTimer) clearTimeout(this.refreshTimer);
244
+ this.tree.dispose();
245
+ }
246
+ async open(node, split) {
247
+ if (!node || node.directory) return;
248
+ if (split)
249
+ await import_coc.workspace.nvim.command(`${split} ${fnameescape(node.path)}`);
250
+ else await this.ui.openLocation(import_coc.Uri.file(node.path).toString(), 0, 0);
251
+ }
252
+ async toggle(node) {
253
+ if (!node?.directory) return;
254
+ await this.ui.toggleTreeItem("explorer.files");
255
+ }
256
+ async activate(node) {
257
+ if (node.directory) await this.toggle(node);
258
+ else await this.open(node);
259
+ }
260
+ async changeRoot() {
261
+ const root = await import_coc.window.requestInput(
262
+ "Explorer root",
263
+ this.provider.getRoot()
264
+ );
265
+ if (!root) return;
266
+ this.provider.setRoot(import_node_path.default.resolve(root));
267
+ await this.show();
268
+ }
269
+ async changeRootTo(node) {
270
+ if (!node?.directory) return;
271
+ this.provider.setRoot(node.path);
272
+ await this.show();
273
+ }
274
+ async create(node, directory) {
275
+ if (!node) return;
276
+ const parent = node.directory ? node.path : import_node_path.default.dirname(node.path);
277
+ const name = await import_coc.window.requestInput(
278
+ `${directory ? "New folder" : "New file"} in ${parent}`,
279
+ ""
280
+ );
281
+ if (!name) return;
282
+ const target = import_node_path.default.isAbsolute(name) ? name : import_node_path.default.join(parent, name);
283
+ if (directory) await import_node_fs.promises.mkdir(target, { recursive: true });
284
+ else {
285
+ await import_node_fs.promises.mkdir(import_node_path.default.dirname(target), { recursive: true });
286
+ await import_node_fs.promises.writeFile(target, "", { flag: "wx" });
287
+ }
288
+ this.provider.refresh(node.directory ? node : node.parent);
289
+ if (!directory)
290
+ await this.ui.openLocation(import_coc.Uri.file(target).toString(), 0, 0);
291
+ }
292
+ async createFromInput(node) {
293
+ if (!node) return;
294
+ const parent = node.directory ? node.path : import_node_path.default.dirname(node.path);
295
+ const name = await import_coc.window.requestInput(`Create in ${parent}`, "");
296
+ if (!name) return;
297
+ const directory = name.endsWith(import_node_path.default.sep);
298
+ const normalized = directory ? name.slice(0, -import_node_path.default.sep.length) : name;
299
+ if (!normalized) return;
300
+ const target = import_node_path.default.isAbsolute(normalized) ? normalized : import_node_path.default.join(parent, normalized);
301
+ if (directory) await import_node_fs.promises.mkdir(target, { recursive: true });
302
+ else {
303
+ await import_node_fs.promises.mkdir(import_node_path.default.dirname(target), { recursive: true });
304
+ await import_node_fs.promises.writeFile(target, "", { flag: "wx" });
305
+ }
306
+ this.provider.refresh(node.directory ? node : node.parent);
307
+ if (!directory)
308
+ await this.ui.openLocation(import_coc.Uri.file(target).toString(), 0, 0);
309
+ }
310
+ async rename(node) {
311
+ if (!node) return;
312
+ const name = await import_coc.window.requestInput("Rename", import_node_path.default.basename(node.path));
313
+ if (!name) return;
314
+ const target = import_node_path.default.isAbsolute(name) ? name : import_node_path.default.join(import_node_path.default.dirname(node.path), name);
315
+ if (target === node.path) return;
316
+ await import_node_fs.promises.rename(node.path, target);
317
+ this.provider.refresh(node.parent);
318
+ }
319
+ async delete(node) {
320
+ if (!node) return;
321
+ const answer = await import_coc.window.showWarningMessage(
322
+ `Delete ${node.path}?`,
323
+ "Delete"
324
+ );
325
+ if (answer !== "Delete") return;
326
+ await import_node_fs.promises.rm(node.path, { recursive: node.directory });
327
+ this.provider.refresh(node.parent);
328
+ }
329
+ async copyPath(node) {
330
+ if (!node) return;
331
+ await import_coc.workspace.nvim.call("setreg", ["+", node.path]);
332
+ }
333
+ async runSystem(node) {
334
+ if (!node) return;
335
+ const command = await import_coc.window.requestInput("Run command", "");
336
+ if (!command) return;
337
+ await import_coc.window.runTerminalCommand(
338
+ command,
339
+ node.directory ? node.path : import_node_path.default.dirname(node.path)
340
+ );
341
+ }
342
+ refresh() {
343
+ this.provider.refresh();
344
+ }
345
+ scheduleRefresh() {
346
+ if (this.refreshTimer) clearTimeout(this.refreshTimer);
347
+ this.refreshTimer = setTimeout(() => this.refresh(), 100);
348
+ }
349
+ resetRoot() {
350
+ this.provider.setRoot(import_node_path.default.resolve(import_coc.workspace.rootPath || import_coc.workspace.cwd));
351
+ }
352
+ async changeRootToParent() {
353
+ const root = this.provider.getRoot();
354
+ const parent = import_node_path.default.dirname(root);
355
+ if (parent === root) return;
356
+ this.provider.setRoot(parent);
357
+ await this.show();
358
+ }
359
+ async focusParent(node) {
360
+ if (!node.parent) return;
361
+ await this.tree.reveal(node.parent, { focus: true });
362
+ }
363
+ viewActions() {
364
+ const file = (node) => !node.directory;
365
+ const directory = (node) => node.directory;
366
+ return [
367
+ {
368
+ id: "coc-explorer.activate",
369
+ title: "Open / Toggle",
370
+ keys: ["o"],
371
+ handler: (node) => this.activate(node)
372
+ },
373
+ {
374
+ id: "coc-explorer.openSplit",
375
+ title: "Open in Split",
376
+ keys: ["<C-x>"],
377
+ when: file,
378
+ handler: (node) => this.open(node, "split")
379
+ },
380
+ {
381
+ id: "coc-explorer.openVsplit",
382
+ title: "Open in Vertical Split",
383
+ keys: ["<C-v>"],
384
+ when: file,
385
+ handler: (node) => this.open(node, "vsplit")
386
+ },
387
+ {
388
+ id: "coc-explorer.openTab",
389
+ title: "Open in New Tab",
390
+ keys: ["<C-t>"],
391
+ when: file,
392
+ handler: (node) => this.open(node, "tabedit")
393
+ },
394
+ {
395
+ id: "coc-explorer.changeRootTo",
396
+ title: "Set as Root",
397
+ keys: ["+", "<C-CR>"],
398
+ when: directory,
399
+ handler: (node) => this.changeRootTo(node)
400
+ },
401
+ {
402
+ id: "coc-explorer.changeRootToParent",
403
+ title: "Root Up",
404
+ keys: ["-"],
405
+ handler: () => this.changeRootToParent()
406
+ },
407
+ {
408
+ id: "coc-explorer.focusParent",
409
+ title: "Focus Parent",
410
+ keys: ["<BS>", "P"],
411
+ when: (node) => Boolean(node.parent),
412
+ handler: (node) => this.focusParent(node)
413
+ },
414
+ {
415
+ id: "coc-explorer.create",
416
+ title: "Create",
417
+ keys: ["a"],
418
+ handler: (node) => this.createFromInput(node)
419
+ },
420
+ {
421
+ id: "coc-explorer.rename",
422
+ title: "Rename",
423
+ keys: ["r"],
424
+ handler: (node) => this.rename(node)
425
+ },
426
+ {
427
+ id: "coc-explorer.delete",
428
+ title: "Delete",
429
+ keys: ["d"],
430
+ handler: (node) => this.delete(node)
431
+ },
432
+ {
433
+ id: "coc-explorer.copyPath",
434
+ title: "Copy Absolute Path",
435
+ keys: ["gy"],
436
+ handler: (node) => this.copyPath(node)
437
+ },
438
+ {
439
+ id: "coc-explorer.runSystem",
440
+ title: "Run System Command",
441
+ keys: [".", "s"],
442
+ handler: (node) => this.runSystem(node)
443
+ },
444
+ {
445
+ id: "coc-explorer.refresh",
446
+ title: "Refresh",
447
+ keys: ["R"],
448
+ handler: () => this.refresh()
449
+ }
450
+ ];
451
+ }
452
+ isWithinRoot(filename) {
453
+ return filename === this.provider.getRoot() || filename.startsWith(`${this.provider.getRoot()}${import_node_path.default.sep}`);
454
+ }
455
+ nodeFor(filename) {
456
+ const parts = import_node_path.default.relative(this.provider.getRoot(), filename).split(import_node_path.default.sep);
457
+ let parent;
458
+ let current = this.provider.getRoot();
459
+ for (const part of parts) {
460
+ current = import_node_path.default.join(current, part);
461
+ parent = { path: current, parent, directory: current !== filename };
462
+ }
463
+ return parent ?? { path: filename, directory: false };
464
+ }
465
+ };
466
+ function fnameescape(filename) {
467
+ return filename.replace(/([\\\s|"'])/g, "\\$1");
468
+ }
469
+ async function activate(context) {
470
+ const extension = import_coc.extensions.getExtensionById("@statiolake/coc-ui");
471
+ if (!extension?.exports) {
472
+ throw new Error("@statiolake/coc-ui must be activated before coc-explorer");
473
+ }
474
+ const ui = extension.exports;
475
+ context.subscriptions.push(new Explorer(ui, context));
476
+ }
477
+ // Annotate the CommonJS export names for ESM import in node:
478
+ 0 && (module.exports = {
479
+ activate
480
+ });
481
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,152 @@
1
+ {
2
+ "name": "@statiolake/coc-explorer",
3
+ "version": "0.1.0",
4
+ "description": "A lean filesystem explorer for coc.nvim view containers",
5
+ "author": "statiolake",
6
+ "license": "MIT",
7
+ "main": "lib/index.js",
8
+ "engines": {
9
+ "coc": "^0.0.82"
10
+ },
11
+ "extensionDependencies": [
12
+ "@statiolake/coc-ui"
13
+ ],
14
+ "activationEvents": [
15
+ "*"
16
+ ],
17
+ "scripts": {
18
+ "build": "node esbuild.mjs",
19
+ "prepare": "node esbuild.mjs",
20
+ "typecheck": "tsc --noEmit"
21
+ },
22
+ "contributes": {
23
+ "commands": [
24
+ {
25
+ "command": "coc-explorer.show",
26
+ "title": "Show Explorer"
27
+ },
28
+ {
29
+ "command": "coc-explorer.reveal",
30
+ "title": "Reveal Current File in Explorer"
31
+ },
32
+ {
33
+ "command": "coc-explorer.refresh",
34
+ "title": "Refresh Explorer"
35
+ },
36
+ {
37
+ "command": "coc-explorer.changeRoot",
38
+ "title": "Change Explorer Root"
39
+ },
40
+ {
41
+ "command": "coc-explorer.open",
42
+ "title": "Open Explorer Item"
43
+ },
44
+ {
45
+ "command": "coc-explorer.toggle",
46
+ "title": "Expand or Collapse Explorer Item"
47
+ },
48
+ {
49
+ "command": "coc-explorer.openSplit",
50
+ "title": "Open Explorer Item in Split"
51
+ },
52
+ {
53
+ "command": "coc-explorer.openVsplit",
54
+ "title": "Open Explorer Item in Vertical Split"
55
+ },
56
+ {
57
+ "command": "coc-explorer.openTab",
58
+ "title": "Open Explorer Item in New Tab"
59
+ },
60
+ {
61
+ "command": "coc-explorer.runSystem",
62
+ "title": "Run System Command for Explorer Item"
63
+ },
64
+ {
65
+ "command": "coc-explorer.changeRootTo",
66
+ "title": "Set Explorer Root to Item"
67
+ },
68
+ {
69
+ "command": "coc-explorer.newFile",
70
+ "title": "Create File in Explorer"
71
+ },
72
+ {
73
+ "command": "coc-explorer.newFolder",
74
+ "title": "Create Folder in Explorer"
75
+ },
76
+ {
77
+ "command": "coc-explorer.create",
78
+ "title": "Create Item in Explorer"
79
+ },
80
+ {
81
+ "command": "coc-explorer.rename",
82
+ "title": "Rename Explorer Item"
83
+ },
84
+ {
85
+ "command": "coc-explorer.delete",
86
+ "title": "Delete Explorer Item"
87
+ },
88
+ {
89
+ "command": "coc-explorer.copyPath",
90
+ "title": "Copy Explorer Item Path"
91
+ }
92
+ ],
93
+ "configuration": {
94
+ "type": "object",
95
+ "title": "Coc Explorer",
96
+ "properties": {
97
+ "coc-explorer.root": {
98
+ "type": "string",
99
+ "default": ""
100
+ },
101
+ "coc-explorer.exclude": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "string"
105
+ },
106
+ "default": [
107
+ ".git",
108
+ "node_modules",
109
+ ".mypy_cache",
110
+ "__pycache__",
111
+ "target"
112
+ ]
113
+ },
114
+ "coc-explorer.showHidden": {
115
+ "type": "boolean",
116
+ "default": true
117
+ },
118
+ "coc-explorer.icons.folderClosed": {
119
+ "type": "string",
120
+ "default": "",
121
+ "description": "Icon for a collapsed folder"
122
+ },
123
+ "coc-explorer.icons.folderOpen": {
124
+ "type": "string",
125
+ "default": "",
126
+ "description": "Icon for an expanded folder"
127
+ }
128
+ }
129
+ }
130
+ },
131
+ "devDependencies": {
132
+ "@statiolake/coc-ui": "git+https://github.com/statiolake/coc-ui.git",
133
+ "@types/node": "^16.18.0",
134
+ "coc.nvim": "^0.0.83-next.24",
135
+ "esbuild": "^0.25.0",
136
+ "typescript": "^5.3.3"
137
+ },
138
+ "repository": {
139
+ "type": "git",
140
+ "url": "git+https://github.com/statiolake/coc-explorer.git"
141
+ },
142
+ "bugs": {
143
+ "url": "https://github.com/statiolake/coc-explorer/issues"
144
+ },
145
+ "homepage": "https://github.com/statiolake/coc-explorer#readme",
146
+ "publishConfig": {
147
+ "access": "public"
148
+ },
149
+ "files": [
150
+ "lib/index.js"
151
+ ]
152
+ }