TextMate Bundle for Moai
It currently has only one, albeit very useful, command: Running the current Lua file with moai. It is run with the
-e flag, which means that moai will watch the file and reload when you edit and save your file.
In addition it also provides completion of the Moai class names and members (on the escape key — ⎋).
This bundle is being developed in TextMate 2. It might work in TextMate 1 as well. Tell me if you test it.
Clone or download this repository and doubleclick
Moai.tmbundle. TextMate should then offer to install the bundle.
Create a variable called
TM_MOAI in TextMate → Preferences… → Variables (or in
.tm_properties). The value should be set to the absolute path of the
moai executable. Example:
- Press ⌘R or click Bundles → Moai → Run Moai to run the current file.
- Press ⎋ to cycle through completions.
Tuk Bredsdorff, 2013.