Home

TextMate Drupal Bundle

Feb 07, 2006

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.

AttachmentSize
generate.php.txt2.63 KB

Awesome!

Feb 26, 2006 Rick

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

Jun 29, 2006 ChrisG

I agree with rick! Text Mate Rocks! Drupal Rocks! Steven Rocks! Rick Rocks!

New to Mac and TM - a little more info please

Feb 15, 2007 AlexR

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

Feb 19, 2007 Christefano

@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!

Feb 19, 2007 Alex Rollin

I'm on it! Muchos gracias!

API Module

Oct 17, 2007 Rob Loach

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

Jan 16, 2008 Ximo

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]?

Feb 21, 2009 jimmyd

I'm pretty new to command line stuff. Do you have any detailed instructions? Know of any tutorials out there on command line?

Post new comment

Note: all posts containing spam will be removed.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul> <img> <em> <p> <br> <span> <div> <h2> <h3> <abbr> <small> <table> <tr> <td> <strong> <acronym> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

Recent comments

Images