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
|
{
"version": 1,
"supportedProjectTypes": [ ],
"id": "Z.ScratchFile",
"category": "U.General",
"trDescription": "Creates a scratch buffer using a temporary file.",
"trDisplayName": "Scratch Buffer",
"trDisplayCategory": "General",
"platformIndependent": true,
"enabled": "%{JS: value('Plugins').indexOf('TextEditor') >= 0}",
"options": [ { "key": "TargetPath", "value": "%{JS: Util.mktemp('scratch-XXXXXX.txt')}" } ],
"pages" : [],
"generators" :
[
{
"typeId": "File",
"data":
{
"source": "file.txt",
"target": "%{TargetPath}",
"overwrite": true,
"openInEditor": true,
"temporary": true
}
}
]
}
|