I’ve started a basic CodeIgniter bundle for the excellent Mac OSX text editor TextMate. I know that the forum user iworx was working on something here, but since I’d not seen anything yet I thought I’d have a go myself. Apologies if I’m stealing anyones thunder! Please feel free to add to this - it’s far from complete.
————————————————————————————
Here’s a demo movie that shows what it does
————————————————————————————
For those new to bundles, here’s a quick overview.
What does a Textmate bundle do?
Allows you to write code really quickly by reducing the amount of keystrokes you need to type commands and saving you from memorising everything.
How does it work?
By typing a keyword or ‘trigger’ followed by tab. At present, the classes with triggers are as follows:
Active Record - type ciar followed by tab
Benchmark - type cibench followed by tab
Calendar - type cical followed by tab
Config - type ciconf followed by tab
Load - type ciload followed by tab
I’ve used the trigger format suggested by iworx - these should be pretty easy to remember, though it might help if you get into the habit of thinking “code igniter load” as you type ciload, for example. Once you’ve hit tab the first time, you can press tab again to move between editable fields.
How do I use it?
1) First you need to be running OSX and have Textmate installed.
2) Next, download the bundle, unzip it and double click it to install.
3) Open up Textmate and browse to a php file in one of your CodeIgniter projects.
4) Type one of the triggers above, followed by tab. (You must be typing between the php <? and ?> tags.)
I look forward to your comments, bug reports and additions!
