Muffinresearch Labs by Stuart Colville

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:

  1. Run update status script from the background to prevent hanging TextMate
  2. Publish the command to show the public/friends timeline

Fear not a more comprehensive version is in the works! :-)

Post Tools

Comments: Add yours

1. On March 20th, 2007 at 9:31 am Brad Wright said:

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. ;)

2. On March 20th, 2007 at 9:36 am Stuart Colville said:

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.

3. On March 20th, 2007 at 12:42 pm FredB said:

cmd + t is the key equivalent for Go To File.

You’re using Go To File, aren’t you? If not, you should. ;)

4. On March 20th, 2007 at 12:54 pm Stuart Colville said:

@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 :-)

5. On March 20th, 2007 at 4:50 pm Ed Eliot said:

That’s nuts, but I love it. I might start using Twitter now. ;-)

6. On March 20th, 2007 at 7:36 pm JulianSchrader.de | Editing CSS on a Mac said:

[...] find new tricks every day when working with TextMate—and since it’s extendable you can even twitter through [...]

7. On March 20th, 2007 at 10:00 pm Carles said:

COOL!

8. On March 20th, 2007 at 10:10 pm RazorSharp iPods & Raw Gadgets » Blog Archive » Twitter from TextMate said:

[...] 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. [...]

9. On March 20th, 2007 at 10:36 pm Bitelia » Publicando en Twitter desde Textmate said:

[...] ¿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. [...]

10. On March 21st, 2007 at 6:47 am Filter for 21/3 2007 - Felt said:

[...] Muffin Research Labs: Twitter from TextMate It had to happen, of course. [...]

11. On March 22nd, 2007 at 6:26 am mcdave.net » links for 2007-03-22 said:

[...] Twitter from TextMate | Muffin Research Labs by Stuart Colville twittea mientrasr programas (tags: Twitter textmate) [...]

12. On March 22nd, 2007 at 10:20 am Päivän linkit 22.3.2007 | Satunnainen Björklund said:

[...] 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: [...]

13. On March 24th, 2007 at 2:35 am TweetyPy: Python-based CLI client for Twitter | Muffin Research Labs by Stuart Colville said:

[...] recently created a Twitter bundle for Textmate I came to the conclusions that using PHP for the command was fairly limiting. Having [...]

14. On March 25th, 2007 at 6:44 pm Anders said:

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.

15. On March 25th, 2007 at 11:20 pm Stuart Colville said:

@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!

16. On March 26th, 2007 at 1:26 am Twitter Hacks » Blog Archive » Twitter from TextMate said:

[...] 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 [...]

17. On March 30th, 2007 at 11:20 pm drew olanoff said:

this twitter stuff is a blast, can’t get enough of it.

18. On April 6th, 2007 at 7:20 pm Thomas Aylott said:

Command-Control-T is for the select an item panel.

That’s the single most important shortcut in TextMate.

19. On April 27th, 2007 at 11:49 pm Jacob Rus said:

Wow, clobbering ⌃⌘T takes balls. Better hurry up and fix that before the purple helicopters start shining spotlights down at your yard.

20. On April 30th, 2007 at 7:19 am Stuart Colville said:

@Thomas and Jacob: Whoops. Will change that in the next release.

21. On August 9th, 2007 at 12:32 am Everyone should have at least one Gotchi! » Hilfreiches zu Twitter said:

[...] Twittern mit Textmate [...]







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Standalone mac battery charger|(0)

Got a spare mac battery? I’ve often wondered why up until now no-one’s produced a standalone charger so that you can charge batteries without having to plug them into the mac. Fortunately Fastmac.com have produced a standalone charger that allows you to do just that. and it’s compatible with iBooks, Powerbooks, macbooks and Macbook Pros. It’s also 110/200v. Exactly what I was looking for!

Django Admin Ominigraffle Stencil|(0)

Colleague Alex Lee has created a nice stencil for omingraffle with the Django Admin UI components, perfect for wireframing customised admin screens. For more details and to download the stencil see Alex’s Blog csensedesign.co.uk

Photos on Flickr

© Copyright 2004-08 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by 1&1 This page was baked in 1.025s.