Panic Coda Drupal plugin

Panic's Coda is a great editor/IDE (mac only). Since the latest version a new Plugin architecture is available. I haven't found any Drupal plugins yet, so I decided to write my own.

You can download the plugin here.

What's in it?

Drupal

API

Press ^H (ctrl + H) on a selected word to look it up on api.drupal.org. Selecting a hook, will look up the hook.

Flush caches

Flushes the caches. Same as going to admin/settings/performance and hitting the button there.

NOTE: You have to be in a Coda local Site. The root of the Coda local Site should be the root of your Drupal site.

Run cron

Runs cron on your site.

NOTE: You have to be in a Coda local Site. The root of the Coda local Site should be the root of your Drupal site.

Create module

Creates a module stub in sites/all/modules custom. If you select some text in some file (whatever file), the module name is that select text. If you haven't selected anything, the name is "New module".

NOTE: You have to be in a Coda local Site. The root of the Coda local Site should be the root of your Drupal site.

Text

Some text commands:
- Remove trailing spaces
- Uppercase
- Lowercase
- URL escape
- URL unescame
- Slug : Converts the selected text to a slug; removes all nog alphanumeric characters and replaces whitespace by dashes.

AttachmentSize
Drupal.codaplugin.zip96.53 KB
Written on March 08, 2009 at 12:26, tagged as Coda, Coda Drupal plugin, Drupal

Comments

Get the latest version of the Drupal Coda Plugin.

Menu items are only available if you have opened some file.

I thought I set up my local site correctly, in my local file browser I see the drupal index.php and all of the files however all the menu options are grayed out. What am I doing worng? Using Drupal 3 plugin.

You have to be in a Coda local Site. The root of the Coda local Site should be the root of your Drupal site.

Awesome plugin. Thanks a lot!

Any way to make some of these local-only features work with remote sites? With my current workflow I work with only a remote site and no local site so it would be great if these features would still work. In any case, great work!

Awesome plugin. Thanks a lot!

Hi Btully,

It's your local root that's important, that has to point to your drupal installation (where index.php resides among others)

Wow, Davy -- this looks really impressive! Thanks so much for taking the time to put this together.

I'm a little unclear on how to get some of the items working within the Drupal menu. You mentioned above that "you have to be in a Coda local Site". Can you explain some more on how this works? Items such as "flush caches", "create module" and "run cron" are not doing anything for me -- so I was curious as to what it's supposed to do. I am running Drupal locally via MAMP and my Coda site's local url correctly points to the site. But again, when I select any of those über-cool menu items, nothing happens.

Thanks again!

Do you have a sites/all/modules/custom folder?

This is great!

Can't seem to get the create module feature working though, I'm using the 'sites' feature with the drupal root as the root of my local site.

the ^H lookup is awesome :)

I absolutely love Coda and now have you to thank for extending it even more!

Thanks!

Post new comment

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> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

About

drupalcoder.com is a blog on all things Drupal in specific and LAMP on OS X in general. It is maintained by Davy Van Den Bremt, a Belgian (Drupal) web developer and designer living in Ghent. The goal of this blog is to log all interesting things that have crossed the writer's path while developing Drupal sites. You can read all about Davy's professional activities on his LinkedIn profile. If you want to get in touch, use the contact form.