{
    "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: isPluginRunning('texteditor')}",

    "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
            }
        }
    ]
}
