Introducing a new Sublime Text 2 plugin for Drupal which offers autocompletions for all functions in your project.
After trying Sublime Text 2 for a day I’ve already fallen in love with its simple but elegant interface. I’m generally a fairly happy user of Komodo IDE but don’t really like is klunky interface and occasional crashes and its often slow response. What I do like about Komodo is its ability to scan through your project and provide autocomplete suggestions, something that Sublime Text 2 doesn’t do.
So I decided to write a script to fill some of this gap in Sublime Text 2. The script simply scans through a specified directory and creates a json formatted sublime-completions file from all the functions it finds.
I’ve written a drush make file that will setup Drupal complete with Git checkouts of the big three Earl Miles modules: Chaos Tool Suite, Views and Panels. There is nothing particularly unique about this, but if it helps people provide patches for Views or Panels, then that’s a good thing! The make file is currently hosted on Github.
For some reason I wasn’t aware of there being no upgrade path between alpha version of Drupal. This makes total sense, the api and schema keeps changing a lot before the beta so extra time is needed to maintain the updgrade path and it would be better spent elsewhere. Unfortunately I had decided to create this site on Drupal 7 alpha 6 a little while back so when the beta came out a few days ago I decided to try to upgrade.
As Drupal’s view permission doesn’t differentiate between a view in a list (output by Views) and a full node view it can be hard to meet the requirements of some clients who want to ‘tease’ their users by showing lists of titles without giving full access to the node.
Stella Power wrote about one way to do this which made me write up my method in this blog post.