Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

up vote 9 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)

share|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
    
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

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). –  Yar Dec 5 '09 at 13:22

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. –  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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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