Skip to content
rudyfromMLstate edited this page Apr 23, 2012 · 3 revisions

Here we give some information to help you tweaking your Opa plugin to feet your needs.

Plugin location and edition

Depending on your system the plugin is in:

  • ~/.config/sublime-text2/Packages/Opa (linux)
  • %APPDATA%\Sublime Text 2\Packages\Opa (windows)
  • ~/Library/Application Support/Sublime Text 2/Packages/Opa (mac)

Most files are text file that are automatically reloaded on modification. So you can easily test modification on the.

Build systems

Builds systems are in files Opa-All.sublime-build, Opa-Conf.sublime-build, Opa-One.sublime-build.

The "cmd" field

The cmd field contains the build command. That's a shell command.

Using the classic syntax

For instance in Opa-One.sublime-build, you can modify the line

  • "cmd": ["opa --no-color $file -o opa_build.exe"],

by

  • "cmd": ["opa --verbose --parser classic --no-color --force-server $file -o opa_build.exe"],

So you can use both the classic syntax and 'the Server.start' function.

Other commands

The file commands.py contains other commands (e.g. run, stop ...). Commands menu is in Main.sublime-menu. Shortcuts are in Default.sublime-keymap. Contextual menu is in Context.sublime-menu.