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

link|improve this question

74% accept rate
So you can create the link but it will not do the desired behaviour? – ricbax Dec 5 '09 at 13:53
If I type b.com it is a link, but there is no way to navigate to it. I wish to navigate to it from Textmate. – Yar Dec 7 '09 at 12:10
feedback

3 Answers

up vote 8 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 http://b.com, it won't work for simple b.com)

link|improve this answer
Really? I'm going to check this right now. – Yar Jun 28 '10 at 17:25
Friggin' genius, thanks @tig!!! – Yar Jun 28 '10 at 17:25
Great solution! – fideli Jun 28 '10 at 22:01
feedback

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.

link|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. – Yar 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. – Yar Jun 28 '10 at 17:26
feedback

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

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

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.