forked from 61130061/NERDTree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
173 lines (173 loc) · 5.62 KB
/
package.json
File metadata and controls
173 lines (173 loc) · 5.62 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
{
"name": "nerdtree",
"displayName": "NERDTree",
"description": "⌨️ NERDTree for Visual Studio Code",
"icon": "docs/icon.png",
"version": "1.2.1",
"publisher": "Llam4u",
"keywords": [
"NERDTree",
"vim",
"vi",
"vscodevim"
],
"repository": {
"type": "git",
"url": "https://github.com/61130061/NERDTree.git"
},
"homepage": "https://github.com/61130061/NERDTree",
"bugs": {
"url": "https://github.com/61130061/NERDTree/issues"
},
"engines": {
"vscode": "^1.71.0"
},
"categories": [
"Other",
"Keymaps"
],
"activationEvents": [
"onCommand:nerdtree.unfocusSidebarOrClose",
"onCommand:nerdtree.openFile",
"onCommand:nerdtree.openFileNewWindow"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "NERDTree",
"properties": {
"nerdtree.hideSidebarWhenOpenFile": {
"type": "boolean",
"default": true,
"description": "If this option is checked ✅, the sidebar will be hidden, after you open a file from the Explorer view with NERDTree key ⌨️ (t) or (Enter). Otherwise ❌, nothing will happend."
},
"nerdtree.alwaysShowSidebar": {
"type": "boolean",
"default": false,
"description": "If this option is checked ✅, the sidebar will be shown everytime you switch between editor and file explorer with NERDTree shortcut ⌨️ (ctrl + n). Otherwise ❌, sidebar will be toggled instead"
}
}
},
"keybindings": [
{
"key": "ctrl+n",
"command": "nerdtree.unfocusSidebarOrClose",
"when": "sideBarVisible && filesExplorerFocus"
},
{
"key": "ctrl+n",
"command": "workbench.files.action.focusFilesExplorer",
"when": "sideBarVisible && !filesExplorerFocus && !suggestWidgetVisible && vim.mode != 'Insert'"
},
{
"key": "ctrl+n",
"command": "workbench.files.action.focusFilesExplorer",
"when": "!sideBarVisible && !suggestWidgetVisible && vim.mode != 'Insert'"
},
{
"key": "ctrl+n",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible && vim.mode == 'Insert'"
},
{
"key": "ctrl+n",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus && vim.mode == 'Insert'"
},
{
"key": "t",
"command": "nerdtree.openFileNewWindow",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsFolder && !inputFocus"
},
{
"key": "enter",
"command": "nerdtree.openFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsFolder && !inputFocus"
},
{
"key": "enter",
"command": "list.select",
"when": "explorerViewletVisible && filesExplorerFocus && explorerResourceIsFolder && !inputFocus"
},
{
"key": "h",
"command": "list.collapse",
"when": "listFocus && !inputFocus"
},
{
"key": "j",
"command": "list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "k",
"command": "list.focusUp",
"when": "listFocus && !inputFocus"
},
{
"key": "l",
"command": "list.select",
"when": "listFocus && !inputFocus"
},
{
"key": "m a",
"command": "workbench.files.action.createFileFromExplorer",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
{
"key": "m d",
"command": "moveFileToTrash",
"when": "explorerResourceMoveableToTrash && explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
{
"key": "m c",
"command": "filesExplorer.copy",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
"key": "m v",
"command": "filesExplorer.paste",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
{
"key": "m f",
"command": "workbench.files.action.createFolderFromExplorer",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
{
"key": "m r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
}
]
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"vsce": "vsce package",
"publish": "vsce publish",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "16.x",
"@types/vscode": "^1.71.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.20.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
}