Skip to content

Using arya as a filter in Sublime Text

Paul Lesiak edited this page Aug 7, 2014 · 3 revisions

Using arya as a filter in Sublime Text

  1. Get the Package Control plugin for sublime text

  2. After installing Package Control, use it to install the 'External Command' plugin. To do this, access the command palette, type in 'package control install', hit enter and then type in 'external command', hit enter.

  3. Configure a new menu entry in your Preferences.sublime-commands, e.g., /Users/username/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-commands

    [
    { "caption": "Generate Cobra Code", "command": "filter_through_command", "args": { "cmdline" : "python /Users/username/git/ACI/arya/arya.py -s"} }
    ]
    
  4. Now you can open an XML or JSON document in Sublime Text, access the command palette, type in 'generate cobra code' (or even less text if you know what you're doing in sublime text), and have that document quickly converted to Cobra syntax

Clone this wiki locally