-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
package.json
513 lines (513 loc) · 13.9 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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
{
"name": "betterfountain",
"displayName": "Better Fountain",
"description": "Fountain autocomplete, syntax highlighting, and export to PDF",
"author": "Piers Deseilligny",
"license": "MIT",
"aiKey": "0c2689ab-4ce9-416d-a585-c9765b7f4c88",
"icon": "icon.png",
"version": "1.13.0",
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"sponsor": {
"url": "https://github.com/sponsors/piersdeseilligny"
},
"repository": {
"type": "git",
"url": "https://github.com/piersdeseilligny/betterfountain"
},
"bugs": {
"url": "https://github.com/piersdeseilligny/betterfountain/issues"
},
"publisher": "piersdeseilligny",
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"screenwriting",
"fountain",
"screenplay",
"pdf"
],
"engines": {
"vscode": "^1.62.0"
},
"activationEvents": [
"onLanguage:fountain",
"onCommand:fountain.livepreview",
"onCommand:fountain.pdfpreview",
"onCommand:fountain.exportpdf",
"onCommand:fountain:exporthtml",
"onCommand:fountain.exportpdfdebug",
"onCommand:fountain.exportpdfcustom",
"onView:fountain-cheatsheet",
"onWebviewPanel:fountainPreview"
],
"main": "./out/extension",
"browser": "./out/extension",
"contributes": {
"configurationDefaults": {
"[fountain]": {
"editor.wordWrap": "on",
"editor.wordBasedSuggestions": false,
"editor.suggestSelection": "first"
}
},
"viewsContainers": {
"activitybar": [
{
"id": "fountain-view",
"icon": "flaticon.svg",
"title": "Fountain"
}
]
},
"views": {
"fountain-view": [
{
"id": "fountain-outline",
"name": "Outline"
},
{
"id": "fountain-characters",
"name": "Characters"
},
{
"id": "fountain-locations",
"name": "Locations"
},
{
"id": "fountain-commands",
"name": "Commands"
},
{
"id": "fountain-cheatsheet",
"name": "Cheat Sheet",
"type": "webview"
}
]
},
"menus": {
"view/title": [
{
"command": "fountain.outline.visibleitems",
"group": "navigation@1",
"when": "view == fountain-outline"
},
{
"command": "fountain.outline.reveal",
"group": "navigation@2",
"when": "view == fountain-outline"
}
],
"commandPalette": [
{
"command": "fountain.jumpto",
"when": "false"
}
]
},
"configuration": [
{
"title": "Fountain General Settings",
"type": "object",
"properties": {
"fountain.general.refreshStatisticsOnSave": {
"type": "boolean",
"default": true,
"description": "Automatically refresh the statistics panel each time you save the document"
},
"fountain.general.refreshPdfPreviewOnSave": {
"type": "boolean",
"default": true,
"description": "Automatically refresh the PDF Preview each time you save the document"
},
"fountain.general.numberScenesOnSave": {
"type": "boolean",
"default": false,
"description": "Automatically number the scenes each time you save the document"
},
"fountain.general.synchronizedMarkupAndPreview": {
"type": "boolean",
"default": true,
"description": "Automatically synchronize preview and text editor position"
},
"fountain.general.parentheticalNewLineHelper": {
"type": "boolean",
"default": true,
"markdownDescription": "Automatically skip to the next line if the caret is just before the last parenthesis within a parenthetical (as such❚). If you are using a vim emulator, you should disable this setting - an [issue with vscode](https://github.com/Microsoft/vscode/issues/13441) means it is impossible for two extensions to simultaneously intercept typing."
},
"fountain.general.previewTheme": {
"type": "string",
"enum": [
"vscode",
"paper"
],
"description": "The theme to be used in the live preview",
"default": "vscode"
},
"fountain.general.previewTexture": {
"type": "boolean",
"default": true,
"description": "Noise texture on the live preview (absent from PDF)"
}
}
},
{
"title": "Fountain PDF Export",
"type": "object",
"properties": {
"fountain.pdf.emboldenSceneHeaders": {
"type": "boolean",
"default": true,
"description": "Make scene headers bold"
},
"fountain.pdf.emboldenCharacterNames": {
"type": "boolean",
"default": false,
"description": "Make character names bold"
},
"fountain.pdf.showPageNumbers": {
"type": "boolean",
"default": true,
"description": "Show page numbers"
},
"fountain.pdf.showDialogueNumbers": {
"type": "boolean",
"default": false,
"description": "Show dialogue numbers in preview and PDF"
},
"fountain.pdf.splitDialog": {
"type": "boolean",
"default": true,
"description": "Split dialog between pages"
},
"fountain.pdf.printTitlePage": {
"type": "boolean",
"default": true,
"description": "Print the title page"
},
"fountain.pdf.printProfile": {
"type": "string",
"description": "The printing dimensions",
"enum": [
"a4",
"usletter"
],
"default": "a4"
},
"fountain.pdf.doubleSpaceBetweenScenes": {
"type": "boolean",
"default": false,
"description": "Double the space between scenes"
},
"fountain.pdf.printSections": {
"type": "boolean",
"default": false,
"description": "Print sections (marked with #)"
},
"fountain.pdf.printSynopsis": {
"type": "boolean",
"default": false,
"description": "Print synopsis (marked with =)"
},
"fountain.pdf.printActions": {
"type": "boolean",
"default": true,
"description": "Print action blocks"
},
"fountain.pdf.printHeaders": {
"type": "boolean",
"default": true,
"description": "Print scene headers"
},
"fountain.pdf.printDialogues": {
"type": "boolean",
"default": true,
"description": "Print dialogue"
},
"fountain.pdf.numberSections": {
"type": "boolean",
"default": false,
"description": "Automatically number sections"
},
"fountain.pdf.useDualDialogue": {
"type": "boolean",
"default": true,
"description": "Print dual dialogue in two columns"
},
"fountain.pdf.printNotes": {
"type": "boolean",
"default": false,
"description": "Print notes (text enclosed between [[two brackets]])"
},
"fountain.pdf.pageHeader": {
"type": "string",
"default": "",
"description": "Text to be inserted at the top of each page"
},
"fountain.pdf.pageFooter": {
"type": "string",
"default": "",
"description": "Text to be inserted at the bottom of each page"
},
"fountain.pdf.watermark": {
"type": "string",
"default": "",
"description": "Watermark displayed across each page"
},
"fountain.pdf.sceneNumbers": {
"type": "string",
"enum": [
"none",
"left",
"right",
"both"
],
"default": "both",
"description": "Location of scene numbers"
},
"fountain.pdf.eachSceneOnNewPage": {
"type": "boolean",
"default": false,
"description": "Systematically break page after a scene"
},
"fountain.pdf.mergeEmptyLines": {
"type": "boolean",
"default": true,
"description": "Merge multiple empty lines"
},
"fountain.pdf.createBookmarks": {
"type": "boolean",
"default": true,
"description": "Create bookmarks for each section/scene"
},
"fountain.pdf.invisibleSectionBookmarks": {
"type": "boolean",
"default": true,
"markdownDescription": "If `#fountain.pdf.printSections#` is false, add a bookmark for the section to the following scene header instead"
},
"fountain.pdf.textMORE": {
"type": "string",
"default": "(MORE)",
"description": "Text to print when dialogue is cut before a page break - \"(MORE)\" in English."
},
"fountain.pdf.textCONTD": {
"type": "string",
"default": "(CONT'D)",
"description": "Text to print by a character's name when continuing dialogue after a page break - \"(CONT'D)\" in English."
},
"fountain.pdf.textSceneContinued": {
"type": "string",
"default": "CONTINUED",
"markdownDescription": "Text to print if `#fountain.pdf.sceneContinuationTop#` or `#fountain.pdf.sceneContinuationBottom#` are enabled - `CONTINUED` in English."
},
"fountain.pdf.sceneContinuationTop": {
"type": "boolean",
"default": false,
"markdownDescription": "Display `CONTINUED:` at the top of pages where a scene is split by a page break. If `#fountain.pdf.sceneNumbers#` is enabled, the scene number will be included (eg `12A CONTINUED:)`"
},
"fountain.pdf.sceneContinuationBottom": {
"type": "boolean",
"default": false,
"markdownDescription": "Display `(CONTINUED)` at the bottom of pages where a scene is cut by a page break."
}
}
}
],
"commands": [
{
"command": "fountain.outline.visibleitems",
"title": "Change items visible in the outline",
"icon": "$(eye)",
"category": "Fountain"
},
{
"command": "fountain.outline.reveal",
"title": "Reveal cursor position",
"category": "Fountain",
"icon": "$(remote)"
},
{
"command": "fountain.livepreview",
"title": "Show screenplay live preview (Dynamic switching)",
"category": "Fountain"
},
{
"command": "fountain.pdfpreview",
"title": "Show screenplay PDF Preview (not real-time)"
},
{
"command": "fountain.livepreviewstatic",
"title": "Show screenplay live preview (For the current document only)",
"category": "Fountain"
},
{
"command": "fountain.exportpdf",
"title": "Export screenplay PDF",
"category": "Fountain"
},
{
"command": "fountain.exporthtml",
"title": "Export screenplay HTML",
"category": "Fountain"
},
{
"command": "fountain.exportpdfdebug",
"title": "Export screenplay PDF with default name and open it",
"category": "Fountain"
},
{
"command": "fountain.exportpdfcustom",
"title": "Export screenplay PDF with highlighted characters",
"category": "Fountain"
},
{
"command": "fountain.jumpto",
"title": "Jump to line",
"category": "Fountain"
},
{
"command": "fountain.overwriteSceneNumbers",
"title": "Number all scenes (overwrites existing scene numbers)",
"category": "Fountain"
},
{
"command": "fountain.updateSceneNumbers",
"title": "Number all scenes (keep existing scene numbers, insert missing ones)",
"category": "Fountain"
},
{
"command": "fountain.statistics",
"title": "Calculate screenplay statistics",
"category": "Fountain"
},
{
"command": "fountain.debugtokens",
"title": "Debug parsed output",
"category": "Fountain"
},
{
"command": "fountain.shiftScenesUp",
"title": "Shift Scenes Up",
"category": "Fountain"
},
{
"command": "fountain.shiftScenesDown",
"title": "Shift Scenes Down",
"category": "Fountain"
}
],
"keybindings": [
{
"command": "fountain.livepreview",
"key": "ctrl+shift+v",
"mac": "cmd+shift+v",
"when": "editorLangId == fountain"
},
{
"command": "fountain.pdfpreview",
"key": "ctrl+shift+v+p",
"mac": "cmd+shift+v+p",
"when": "editorLangId == fountain"
},
{
"command": "fountain.exportpdf",
"key": "ctrl+shift+b",
"mac": "cmd+shift+b",
"when": "editorLangId == fountain"
},
{
"command": "fountain.exportpdfdebug",
"key": "f5",
"mac": "f5",
"when": "editorLangId == fountain"
},
{
"command": "fountain.shiftScenesUp",
"key": "alt+up",
"mac": "alt+up",
"when": "editorLangId == fountain"
},
{
"command": "fountain.shiftScenesDown",
"key": "alt+down",
"mac": "alt+down",
"when": "editorLangId == fountain"
}
],
"languages": [
{
"id": "fountain",
"aliases": [
"Fountain",
"fountain"
],
"extensions": [
".fountain",
".spmd"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "fountain",
"scopeName": "text.source.fountain",
"path": "./syntaxes/fountain.tmLanguage.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compilewebviews": "copyfiles -u 2 webviews/src/*.html webviews/src/*.css webviews/out && webpack --config ./webviews/stats.webpack.config.js",
"compile": "tsc -p ./ && npm run compilewebviews && copyfiles -u 2 webviews/out/* out/webviews && copyfiles -u 1 src/courierprime/*.ttf out && copyfiles -u 1 src/noisetexture.png out && copyfiles -u 2 \"webviews/src/pdfjs/**\" out/webviews",
"watch": "npm run compile",
"test": "node node_modules/jest/bin/jest.js",
"open-in-browser": "vscode-test-web --extensionDevelopmentPath=. ."
},
"devDependencies": {
"@types/base64-stream": "^1.0.2",
"@types/d3": "^5.16.4",
"@types/diff": "^4.0.2",
"@types/he": "^1.1.2",
"@types/jest": "^24.9.1",
"@types/jquery": "^3.5.6",
"@types/mocha": "^5.2.7",
"@types/node": "^8.10.66",
"@types/username": "^3.0.0",
"@types/vscode": "^1.62.0",
"@vscode/test-web": "*",
"copyfiles": "^2.4.1",
"css-loader": "^4.3.0",
"d3": "^5.16.0",
"datatables.net": "^1.10.25",
"datatables.net-dt": "^1.10.25",
"imports-loader": "^1.2.0",
"jest": "^24.9.0",
"jquery": "^3.6.0",
"style-loader": "^1.3.0",
"ts-jest": "^24.3.0",
"typescript": "^4.9.5",
"vscode-test": "^1.6.1",
"webpack": "^5.54.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@vscode/codicons": "^0.0.32",
"base64-stream": "^1.0.0",
"blob": "0.1.0",
"diff": "^5.0.0",
"font-finder": "^1.1.0",
"he": "^1.2.0",
"pdfkit": "^0.12.3",
"readability-scores": "^1.0.8",
"textbox-for-pdfkit": "^0.2.1",
"username": "^5.1.0",
"vscode-extension-telemetry": "^0.3.2"
}
}