Twitter from TextMate | Comments (21)
Posted in Code, humour on 20th March 2007, 9:18 am by Stuart
Yep I know what you’re all thinking this is insane, a Twitter Bundle? Actually it’s not much of a bundle seeing as it only allows you to do one thing at the moment and that’s to update your status.
An idea brought to you from the freakish depths of Christian Heilmann’s crazy mind and realised by yours truly. On reflection does make some sense as now you can send twitters from TextMate it looks like you’re working!
Simply download the Twitter Bundle, unpack and double click to install the bundle. Before you can twitter you need to configure the update status command with your username and your password. The Twitter API simply uses basic auth to allow you to post new messages.
Once you have it set up, simply type some text, select and press option+t ctrl+command+t to send it to Twitter (Note: If this conflicts with anything you can change this to a key combo of your own choosing in the bundle editor). Currently you get the full response back in a tooltip but I hope to improve on this in due course. By full response I mean the whole xml reponse in all it’s geeky goodness. Now you get sensible message to say a twitter has been sent. See I told you this was nuts.
Use at your own risk. I am not responsible if you bring Twitter to it’s knees (oh hang on it already is!). Uses PHP CLI, if you don’t have PHP on your mac you’re kinda screwed (but I think macs do by default so you should be ok). If you have probs let me know and I might be tempted to re-write it in C, or something else.
Rants, comments and suggestions for improvement are welcome below. Bonus points for silliness.
Versions
- Version 0.2
- Moved to a shell script. Send from window available. Changed default command to Ctrl+Command+t
- Version 0.1
- Original Release
Todo:
- Run update status script from the background to prevent hanging TextMate
- Publish the command to show the public/friends timeline
Fear not a more comprehensive version is in the works!

I know you’ve already filed this under “humour”, but I think you need a new category for “blatant ridiculousness”.
I definitely won’t be installing this, as I have enough issues with Twitter locking up Twitterific every 30 mins to risk locking up my dev environment waiting on I/O errors.
Heh heh Brad, yeah you’re right this is more of a piss take than anything actually useful!
I think the problems with Twitterific are to do with updates to the Twitter system according to the Twitteric notification I saw last night.
cmd + t is the key equivalent for Go To File.
You’re using Go To File, aren’t you? If not, you should.
@Fred: Fair point. I’ve it to use alt+t. Hope that doesn’t conflict with anything else. If it does simply customise it as you see fit
That’s nuts, but I love it. I might start using Twitter now.
[...] find new tricks every day when working with TextMate—and since it’s extendable you can even twitter through [...]
COOL!
[...] I’m a big fan of Twitter, and not just because I am on the top 100 Twitter user list (though that doesn’t hurt). It is just plain old fun. I also enjoy the heck out of TextMate, which is also fun to use, though in a different way. Twitter and TextMate are two great tastes that, one would imagine, taste great together. Enter Muffin Research Labs (I never thought I would be writing that) with a new Twitter bundle for TextMate. [...]
[...] ¿Utilizáis Textmate? Es un viejo conocido del weblog y es uno de los mejores editores de texto que puedas utilizar en tu Mac. Si a este le añadimos otro de los servicios que más adeptos está ganando últimamente, ¿qué obtenemos? Twitter Bundle para Textmate. [...]
[...] Muffin Research Labs: Twitter from TextMate It had to happen, of course. [...]
[...] Twitter from TextMate | Muffin Research Labs by Stuart Colville twittea mientrasr programas (tags: Twitter textmate) [...]
[...] Twitter from TextMate | Muffin Research Labs by Stuart Colville Hah! Mutta kaipa tämä on todellinen vaihtoehto, koska Jabber-yhteyttä ei Twitter tunnu saavan kuntoon. tagit: [...]
[...] recently created a Twitter bundle for Textmate I came to the conclusions that using PHP for the command was fairly limiting. Having [...]
gtcaz wrote a twitter bundle for E (”textmate for windows”) some days ago: http://www.e-texteditor.com/forum/viewtopic.php?t=841
It’s written in ruby.
@Anders: So great minds think alike eh? I will be shortly (this week sometime) be moving my Twitter bundle to use TweetyPy a Python-based command-line client for Twitter so it should be a lot more interesting!
[...] I guess I kind of like the idea of being able to send tweets from anywhere and everywhere! Hit Muffin Research Labs for the details and [...]
this twitter stuff is a blast, can’t get enough of it.
Command-Control-T is for the select an item panel.
That’s the single most important shortcut in TextMate.
Wow, clobbering ⌃⌘T takes balls. Better hurry up and fix that before the purple helicopters start shining spotlights down at your yard.
@Thomas and Jacob: Whoops. Will change that in the next release.
[...] Twittern mit Textmate [...]