Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

added .omnijs #1043

Open
bulava92 opened this issue Jan 23, 2025 · 3 comments
Open

added .omnijs #1043

bulava92 opened this issue Jan 23, 2025 · 3 comments

Comments

@bulava92
Copy link

bulava92 commented Jan 23, 2025

Please add processing another type of file as json

<filename>*.json</filename>
<filename>*.jsonc</filename>
<filename>*.avsc</filename>

Here is its approximate structure, these are scripts for the OmniGraffle program

/*{
    "author": "Mark Kats",
    "targets": ["omnigraffle"],
    "type": "action",
    "identifier": "com.example.ex",
    "version": "1.0",
    "description": "",
    "label": "EX(9)",
    "mediumLabel": "",
    "longLabel": "",
    "paletteLabel": ""
}*/

(() => {
    var preferences = new Preferences("EX");
    var action = new PlugIn.Action(function(selection, sender){

        var selectedGraphics = document.windows[0].selection.graphics;
        var layerNamesToExport = new Set();
        var layersToEnable = [];
        var layersToDisable = [];
        var rectcolor, layerName;
        var fileNumber = 0;
        var SaveLayerName = preferences.read("SaveLayerName");
        var SaveFileNumber = preferences.read("SaveFileNumber");
        var isScriptEnabled = false;
        var allLayers = document.windows[0].selection.canvas.layers;
        var canvas = document.windows[0].selection.canvas;
        var canvasGraphic = canvas.background;
@silverwind
Copy link
Contributor

silverwind commented Jan 23, 2025

Note that this seems to be a subset of JavaScript, so the file extension would need to be actually added to the JavaScript lexer, not JSON.

@bulava92 do you have any reference to what this language is? Google gives me no useful results when I search "omnijs". I think chroma should only include extensions that are in somewhat common usage, and this seems borderline uncommon.

@bulava92
Copy link
Author

These are quite popular programs in terms of tasks, flowcharts and planning

Https://omni-automation.com/plugins/installation.html

Omnijs is a file for automation plugins

@silverwind
Copy link
Contributor

silverwind commented Jan 23, 2025

Okay thanks. According to that link, there are five extensions so I think all should be added.

One might also contribute it here to get these file correctly highlighted on GitHub, btw.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants