Update: new version available.
Jeff Robbins is a TextMate user, like me. He was asking about a Drupal editing bundle for it, when I realized it wouldn't be hard to generate automatically.
So, if you find yourself going to drupaldocs.org often to look up the arguments for a particular function, you'll love this. It generates autocomplete snippets for all of Drupal. Simply type the function name and hit tab to see all the arguments. Each argument is a separate placeholder so you can easily tab from one to the other.
To use it, place it in ~/Library/Application Support/TextMate/Bundles and run it:
php generate.php.txt [path to drupal]
Once you restart TextMate, it should pick up the new bundle.
| Attachment | Size |
|---|---|
| generate.php.txt | 2.63 KB |

Awesome!
Text Mate is by far the best editor out there. I am happy to see this kind of functionality built in. Any chance that this will get added to the official bundles in the next Text Mate update?
I agree with rick! Text Mate
I agree with rick! Text Mate Rocks! Drupal Rocks! Steven Rocks! Rick Rocks!
New to Mac and TM - a little more info please
Hello, I'm really wanting this to work.
I seem to have everything in the right place, but the run command gets me. Where do I run this file?
running it
@AlexR: open a Terminal window (using Terminal.app, found in your Application/Utilities folder) and enter the command that Steven wrote above.
Check out cdto, a utility for Terminal.app that sits in your Finder toolbar. It may make your life much easier.
Thanks for the help, and the link!
I'm on it! Muchos gracias!
API Module
Is this something that could become part of (or an addon to) the API Module? Seeing how the API module already generates a list of all functions and constants, it seems quite fitting. My interest comes for generating a list of functions and constants for use with a filter made for the Geshi.
Invaluable
Have been using this for a while, but came back to download it again so I could regenerate the module for D6. Just have to say, this is a really invaluable tool! Thanks a lot :)
[path to drupal]?
I'm pretty new to command line stuff. Do you have any detailed instructions? Know of any tutorials out there on command line?
couldn't be easier than this!
wtf! I can believe such a cool thing it's so easy to do!
thank you guy!
You save me lots of time and make me feel really cool with this tab thing!!!
Post new comment