Please help. I don't understand the install instructions at all.
I've read the textmate documentation and all it says is to install a new module check it out from SVN in the /Library/Application\ Support/TextMate/Bundles directory.

1) I've downloaded you zip file and unzipped it.
2) Where should I put this folder?
3) When I now go to TextMate which file should I open to be in php mode? If I open any normal php file and press ^H I get the online php help.

It seems like I'm missing a huge chunk of information. What should I be reading?

Comments

psynaptic’s picture

First check if you have the bundles directory:

ls /Library/Application\ Support/TextMate/Bundles

If that doesn't exist, create and change to the bundles directory (else just change directory):

mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles

This is where you put the Drupal bundle you got from GitHub. You can clone directly from GitHub using:

git clone git://github.com/psynaptic/php-drupal.tmbundle.git

If you don't have git installed or this scares you, you can open Finder here and move your extracted bundle manually:

open .

If you don't use git then you won't be able to pull from the master repo to keep up-to-date with the changes. You woould have to manually do this every so often.

You then need to reload all bundles:

osascript -e 'tell app "TextMate" to reload bundles'

You can also do this from the bundles menu at Bundles > Bundle Editor > Reload Bundles.

You need to add some "Shell Variables". Goto TextMate > Preferences > Advanced > Shell Variables and click the + button.

Add the following:

Variable: TM_DRUPAL_API
Value: http://drupalcontrib.org

Variable: TM_DRUPAL_VERSION
Value: 6

Now you can try ⌃H from PHP mode. You can change to PHP mode by pressing ⌃⌘⇧H (it is recommended by the author of TextMate to use HTML mode rather than PHP mode directly).

psynaptic’s picture

Title: Please help » Step-by-step installation instructions
diricia’s picture

Status: Active » Closed (fixed)

Thank you for your help.
Two things that where causing a problem.

1) I extracted the bundle in my own directory library directory not in the root library directory, as per the TextMate documentation.
2) Your bundle (zip file) extracts to psynaptic-php-drupal.tmbundle-af06bfb. I had to rename it to psynaptic-php-drupal.tmbundle. Why is the extension incorrect?

Anyway. Thank you. I'm going to try it out now. I'm sure it is going to be fantastic. Next step is to get xdebug installed and working with TextMate.