Magic hyperlinks in TextMate

by Giles Turnbull

Years ago (2003, it would appear), I was wondering in public if there was a way for an editor to automagically fetch links for me - so that I could type something obvious, like “Flickr”, and hit some keys, and the editor would find the appropriate web site on Google and fill in all the HTML for me.

Danny O’Brien knocked up some code for BBEdit, which I think I tried but lacked the Python-fu to make work properly. So I gave up and carried on doing things manually.


Bruno L
2006-12-12 04:08:15
This is a cool feature and was nicely covered in one of the screencasts that Allan Odgaard did:
Searching and Hyperlinks
Randy Smith
2006-12-12 04:59:47
Having always done this the old fashioned way I never thought of an app doing it for me. While I don't use this that least not like a tech writer, it will still come in handy and is a great tip!
2006-12-12 09:20:04
More evidence that TextMate is a stunningly well thought out little app.
Bill B
2006-12-12 09:44:50
Wished this worked for Textile markup. For example, Textmate returns "Google":url instead of "Google":
Dr Drang
2006-12-12 14:08:16
Haris Skiadas worked up a similar feature for creating "I'm feeling lucky" links in Markdown, and I later made some changes to fit my way of working. You can find Haris's work here and mine here.

It probably wouldn't be too hard to change one of these commands to output Textile instead of Markdown.

2006-12-12 22:53:45
Has anyone written an equivalent feature just for looking things up on Amazon?