-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
286 lines (286 loc) · 9.25 KB
/
package.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
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
{
"name": "terminal-polyglot",
"publisher": "haberdashPI",
"repository": "https://github.com/haberdashPI/terminal-polyglot",
"icon": "icon.png",
"displayName": "Terminal Polyglot",
"license": "MIT",
"description": "Easily manage terminals on a per-language basis.",
"version": "0.6.1",
"engines": {
"vscode": "^1.45.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:terminal-polyglot.open-terminal",
"onCommand:terminal-polyglot.next-terminal",
"onCommand:terminal-polyglot.previous-terminal",
"onCommand:terminal-polyglot.new-terminal",
"onCommand:terminal-polyglot.open-terminal-N",
"onCommand:terminal-polyglot.send-text",
"onCommand:terminal-polyglot.send-block-text",
"onCommand:terminal-polyglot.cd",
"onCommand:terminal-polyglot.global_cd",
"onCommand:terminal-polyglot.cd-workspace",
"onCommand:terminal-polyglot.send-command",
"onCommand:terminal-polyglot.global_cd-worrkspace",
"onCommand:terminal-polyglot.run",
"onCommand:terminal-polyglot.select-fence",
"onCommand:terminal-polyglot.send-fence",
"onCommand:terminal-polyglot.next-fence",
"onCommand:terminal-polyglot.prev-fence",
"onCommand:terminal-polyglot.next-fence-select",
"onCommand:terminal-polyglot.prev-fence-select"
],
"main": "./out/extension.js",
"contributes": {
"keybindings": [
{
"command": "terminal-polyglot.send-text",
"key": "ctrl+shift+enter",
"when": "editorTextFocus"
},
{
"command": "terminal-polyglot.send-block-text",
"key": "ctrl+alt+shift+enter",
"when": "editorTextFocus"
},
{
"command": "terminal-polyglot.new-terminal",
"key": "ctrl+shift+'",
"when": "editorTextFocus"
},
{
"command": "terminal-polyglot.new-terminal",
"key": "ctrl+shift+'",
"when": "terminalFocus"
},
{
"command": "terminal-polyglot.open-terminal",
"key": "ctrl+'",
"when": "editorTextFocus"
},
{
"command": "workbench.action.terminal.toggleTerminal",
"key": "ctrl+'",
"when": "terminalFocus"
}
],
"commands": [
{
"command": "terminal-polyglot.send-text",
"title": "Send Text",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.send-block-text",
"title": "Send Block of Text",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.next-terminal",
"title": "Next Terminal",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.open-terminal-N",
"title": "Open Terminal...",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.previous-terminal",
"title": "Previous Terminal",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.new-terminal",
"title": "New Terminal",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.open-terminal",
"title": "Open Terminal",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.cd",
"title": "Change to File Directory",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.global_cd",
"title": "Change to File Directory in shell",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.cd-workspace",
"title": "Change to Workspace Directory",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.global_cd-workspace",
"title": "Change to Workspace Directory in shell",
"category": "Terminal Polyglot"
},
{
"command": "terminal-polyglot.run",
"title": "Run File",
"category": "Terminal Polyglot"
},
{
"title": "Select Current Code Fence",
"command": "terminal-polyglot.select-fence",
"category": "Terminal Polyglot"
},
{
"title": "Send Code Fence",
"command": "terminal-polyglot.send-fence",
"category": "Terminal Polyglot"
},
{
"title": "Go to Next Code Fence",
"command": "terminal-polyglot.next-fence",
"category": "Terminal Polyglot"
},
{
"title": "Go to Previous Code Fence",
"command": "terminal-polyglot.prev-fence",
"category": "Terminal Polyglot"
},
{
"title": "Select Next Code Fence",
"command": "terminal-polyglot.next-fence-select",
"category": "Terminal Polyglot"
},
{
"title": "Select Previous Code Fence",
"command": "terminal-polyglot.prev-fence-select",
"category": "Terminal Polyglot"
}
],
"configuration": {
"type": "object",
"title": "Terminal Polyglot Configuration",
"properties": {
"terminal-polyglot.changeDirectoryShellCommand": {
"type": "string",
"description": "The shell command to change directories.",
"scope": "machine-overridable",
"default": "cd %"
},
"terminal-polyglot.bracketedPasteMode": {
"type": "boolean",
"description": "Send special 'paste' mode character to language-specifi REPL.",
"default": false,
"scope": "language-overridable"
},
"terminal-polyglot.launchCommand": {
"type": "string",
"description": "The terminal command used to start a language-specific REPL.",
"scope": "language-overridable",
"default": ""
},
"terminal-polyglot.runCommand": {
"type": "string",
"description": "The language-specific REPL command used to run a file.",
"scope": "language-overridable",
"default": "./%"
},
"terminal-polyglot.changeDirectoryCommand": {
"type": "string",
"description": "The language-speceific REPL command to change directories.",
"scope": "language-overridable",
"default": "cd %"
},
"terminal-polyglot.sendTextBlockCommand": {
"type": "string",
"description": "The language-speceific REPL command to change directories.",
"scope": "language-overridable",
"default": "%"
},
"terminal-polyglot.codeFenceSyntax": {
"type": "array",
"description": "The language-specific syntax for the start and end of a code fence.",
"scope": "language-overridable",
"default": []
}
}
},
"configurationDefaults": {
"[python]": {
"terminal-polyglot.launchCommand": "ipython",
"terminal-polyglot.runCommand": "%%run \"%\"",
"terminal-polyglot.changeDirectoryCommand": "%%cd \"%\"",
"terminal-polyglot.bracketedPasteMode": true
},
"[markdown]": {
"terminal-polyglot.codeFenceSyntax": [
"^```(\\{\\.?)?(?<lang>[\\w_-]+)?.*\\}?\\s*$",
"^```\\s*$"
]
},
"[clojure]": {
"terminal-polyglot.launchCommand": "clojure",
"terminal-polyglot.runCommand": "(load-file \"%\")",
"terminal-polyglot.changeDirectoryCommand": ""
},
"[julia]": {
"terminal-polyglot.launchCommand": "julia",
"terminal-polyglot.runCommand": "include(\"%\")",
"terminal-polyglot.changeDirectoryCommand": "cd(\"%\")",
"terminal-polyglot.bracketedPasteMode": true,
"terminal-polyglot.sendTextBlockCommand": "begin; %; end"
},
"[ruby]": {
"terminal-polyglot.launchCommand": "irb",
"terminal-polyglot.runCommand": "load '%'",
"terminal-polyglot.changeDirectoryCommand": "Dir.chdir('%')"
},
"[r]": {
"terminal-polyglot.launchCommand": "R",
"terminal-polyglot.runCommand": "source(\"%\")",
"terminal-polyglot.changeDirectoryCommand": "setwd(\"%\")"
},
"[matlab]": {
"terminal-polyglot.launchCommand": "matlab -nodesktop -nosplash",
"terminal-polyglot.runCommand": "run '%'",
"terminal-polyglot.changeDirectoryCommand": "cd '%'"
},
"[typescript]": {
"terminal-polyglot.launchCommand": "ts-node",
"terminal-polyglot.runCommand": ".load \"%\"",
"terminal-polyglot.changeDirectoryCommand": "process.chdir(\"%\")"
},
"[javascript]": {
"terminal-polyglot.launchCommand": "node",
"terminal-polyglot.runCommand": ".load \"%\"",
"terminal-polyglot.changeDirectoryCommand": "process.chdir(\"%\")"
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts ",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"mocha": "^10.2.0",
"typescript": "^3.8.3"
},
"dependencies": {
"tslint": "^6.1.3"
}
}