Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get a link to be clickable in PlainText in Textmate. Currently it gets underlined, but is not clickable.

share|improve this question
So you can create the link but it will not do the desired behaviour? – ricbax Dec 5 '09 at 13:53
If I type it is a link, but there is no way to navigate to it. I wish to navigate to it from Textmate. – Dan Rosenstark Dec 7 '09 at 12:10
up vote 16 down vote accepted

Position cursor on url and press return (not enter on mac book it is fn + enter). This will work only on links that are detected ant therefore highlighted (like, it won't work for simple

share|improve this answer
Really? I'm going to check this right now. – Dan Rosenstark Jun 28 '10 at 17:25
Friggin' genius, thanks @tig!!! – Dan Rosenstark Jun 28 '10 at 17:25
Great solution! – fideli Jun 28 '10 at 22:01
It's actually bound to enter ( fn-↩ on keyboards with no dedicated enter key). urls are handled by an injection grammar from hyperlink helper. – tim Mar 26 '13 at 23:21

The following answer relies on OS X 10.6 and its new and improved Services feature.

To open URLs from TextMate all you need is a couple keyboard shortcuts. If your cursor is anywhere within the URL or at the beginning (not at the end), you can select the whole URL by going to Edit -> Select -> Current Scope or using the keyboard shortcut ⌃⌥B. Then, in the TextMate -> Services menu, click Open URL in the Internet section. You can set a global keyboard shortcut for this by going to the Services Preference Pane and typing in a shortcut for the Open URL service. I use ⌃⌘L.

Therefore, to very quickly open a URL from TextMate, place your cursor in the URL, type ⌃⌥B and ⌃⌘L. That might even be faster than clicking it if it were clickable.

share|improve this answer
Thanks Fideli, when I get 10.6 up and running (tempted to try today, so if I never come back it means my computer caught fire) I'll give this a shot and mark it best answer if it works. – Dan Rosenstark Dec 15 '09 at 14:32
So did it work? – fideli Dec 30 '09 at 7:09
please check the new best answer that just came in. Very cool. – Dan Rosenstark Jun 28 '10 at 17:26

Have a look here: 21.2 URL Scheme (HTML) (mid page)

share|improve this answer
Thanks Ric, that's not relevant (it's the opposite). – Dan Rosenstark Dec 5 '09 at 13:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .