Qt Bundle for TextMate: Prerelease

UPDATE: I’ve put some stuff from my bundle to the official TextMate Bundle Repository. Now you could skip all this stuff and just use the GetBundle Bundle.

Long time, no posts, and truth to be said, I’ve been secretly working on Qt Bundle for TextMate all along, and now you can have your hands on it. Today I will discuss how to install it on your Mac. Description of what it actually does will follow, so explore it on your own and make suggestions.

Getting individual bundles together

As specified in official TextMate manual you can pull individual bundles from subversion repositories thought the world. In order to install Qt bundle, execute following commands:

mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
svn co svn://dev.psi-im.org/mblsha/textmate/Qt.tmbundle

This way you’ll get only the bundles you want.

To update the bundle at a later time, create a simple shell script with these commands:

cd /Library/Application\ Support/TextMate/Bundles
svn up *.tmbundle
osascript -e 'tell application "TextMate" to reload bundles'

The more the merrier

If you absolutely want to have all the latest and greatest, you may opt to get all the bundles from TextMate’s repository, but be careful: there are so much, you’ll have to disable most of them by hand. This is simple.

mkdir -p /Library/Application\ Support/TextMate/
cd /Library/Application\ Support/TextMate/
svn --username anon --password anon co \ http://macromates.com/svn/Bundles/trunk/Bundles

Then you’ll have to add svn:extrenals property to Bundles directory in order to automatically update Qt bundle:

svn propset svn:externals 'Qt.tmbundle svn://dev.psi-im.org/mblsha/textmate/Qt.tmbundle' Bundles

But please be wary that if you already have some svn:externals set, you should use svn propedit command instead.

After this setup getting Qt bundle is just a simple matter of svn up Bundles.

Finishing touches

After initial check out you should perform a couple of small steps to enable quick documentation lookup:

  1. Start Qt Assistant.
  2. Open Index on the Sidebar and wait until the index is created.
  3. Quit Qt Assistant.
  4. Now the index is created and saved to disk.
  5. Open Terminal and execute following commands:
    cd /Library/Application\ Support/TextMate/Bundles/Qt.tmbundle/Support/lib/assistant_search
    qmake && make
  6. Now Documentation for Word command will actually work.

No comments yet. Be the first.

Leave a reply