Source

Moai.tmbundle /

Filename Size Date modified Message
Commands
Preferences
Support
Syntaxes
31 B
1.3 KB
572 B

TextMate Bundle for Moai

This bundle is aiming to provide TextMate 2 support for the Moai SDK, an open source game framework.

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 — ⎋).

Compatibility

This bundle is being developed in TextMate 2. It might work in TextMate 1 as well. Tell me if you test it.

Installation

Clone or download this repository and doubleclick Moai.tmbundle. TextMate should then offer to install the bundle.

Configuration

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: /Users/Maximiliano/Code/moai-sdk/bin/osx/moai.

Usage

  • Press ⌘R or click Bundles → Moai → Run Moai to run the current file.
  • Press ⎋ to cycle through completions.

Author

Tuk Bredsdorff, 2013.