ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Clickable URLs

Underlines URLs in Sublime Text, and lets you open them with a keystroke.

Details

Installs

  • Total 40K
  • Win 23K
  • Mac 12K
  • Linux 5K
Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19
Windows 2 0 2 1 3 0 3 2 0 0 3 2 2 2 0 2 1 3 3 1 2 2 4 2 2 1 3 1 0 1 1 0 1 2 2 1 2 1 0 4 2 0 1 4 2 2
Mac 0 0 0 0 3 2 1 1 2 1 0 1 2 0 2 3 0 1 2 1 1 3 0 0 0 1 0 1 1 1 1 4 1 0 1 2 0 0 1 4 2 2 0 1 0 1
Linux 3 0 1 0 1 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 2 1 2 0 1 0 0 0 1 0 2 0 1 0 1 0 1 0 1
02468Jun 3May 31May 28May 25May 22May 19May 16May 13May 10May 7May 4May 1Apr 28Apr 25Apr 22Apr 19Jun 3 Linux: 3 Mac: 0 Windows: 2Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 1 Mac: 0 Windows: 2May 31 Linux: 0 Mac: 0 Windows: 1May 30 Linux: 1 Mac: 3 Windows: 3May 29 Linux: 0 Mac: 2 Windows: 0May 28 Linux: 0 Mac: 1 Windows: 3May 27 Linux: 0 Mac: 1 Windows: 2May 26 Linux: 0 Mac: 2 Windows: 0May 25 Linux: 0 Mac: 1 Windows: 0May 24 Linux: 1 Mac: 0 Windows: 3May 23 Linux: 0 Mac: 1 Windows: 2May 22 Linux: 1 Mac: 2 Windows: 2May 21 Linux: 1 Mac: 0 Windows: 2May 20 Linux: 1 Mac: 2 Windows: 0May 19 Linux: 0 Mac: 3 Windows: 2May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 1 Windows: 3May 16 Linux: 0 Mac: 2 Windows: 3May 15 Linux: 0 Mac: 1 Windows: 1May 14 Linux: 0 Mac: 1 Windows: 2May 13 Linux: 0 Mac: 3 Windows: 2May 12 Linux: 0 Mac: 0 Windows: 4May 11 Linux: 0 Mac: 0 Windows: 2May 10 Linux: 0 Mac: 0 Windows: 2May 9 Linux: 0 Mac: 1 Windows: 1May 8 Linux: 0 Mac: 0 Windows: 3May 7 Linux: 2 Mac: 1 Windows: 1May 6 Linux: 1 Mac: 1 Windows: 0May 5 Linux: 2 Mac: 1 Windows: 1May 4 Linux: 0 Mac: 1 Windows: 1May 3 Linux: 1 Mac: 4 Windows: 0May 2 Linux: 0 Mac: 1 Windows: 1May 1 Linux: 0 Mac: 0 Windows: 2Apr 30 Linux: 0 Mac: 1 Windows: 2Apr 29 Linux: 1 Mac: 2 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 2Apr 27 Linux: 2 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 1 Windows: 0Apr 25 Linux: 1 Mac: 4 Windows: 4Apr 24 Linux: 0 Mac: 2 Windows: 2Apr 23 Linux: 1 Mac: 2 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 1 Mac: 1 Windows: 4Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 1 Mac: 1 Windows: 2Jun 3 Linux: 3 Mac: 0 Windows: 2Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 1 Mac: 0 Windows: 2May 31 Linux: 0 Mac: 0 Windows: 1May 30 Linux: 1 Mac: 3 Windows: 3May 29 Linux: 0 Mac: 2 Windows: 0May 28 Linux: 0 Mac: 1 Windows: 3May 27 Linux: 0 Mac: 1 Windows: 2May 26 Linux: 0 Mac: 2 Windows: 0May 25 Linux: 0 Mac: 1 Windows: 0May 24 Linux: 1 Mac: 0 Windows: 3May 23 Linux: 0 Mac: 1 Windows: 2May 22 Linux: 1 Mac: 2 Windows: 2May 21 Linux: 1 Mac: 0 Windows: 2May 20 Linux: 1 Mac: 2 Windows: 0May 19 Linux: 0 Mac: 3 Windows: 2May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 1 Windows: 3May 16 Linux: 0 Mac: 2 Windows: 3May 15 Linux: 0 Mac: 1 Windows: 1May 14 Linux: 0 Mac: 1 Windows: 2May 13 Linux: 0 Mac: 3 Windows: 2May 12 Linux: 0 Mac: 0 Windows: 4May 11 Linux: 0 Mac: 0 Windows: 2May 10 Linux: 0 Mac: 0 Windows: 2May 9 Linux: 0 Mac: 1 Windows: 1May 8 Linux: 0 Mac: 0 Windows: 3May 7 Linux: 2 Mac: 1 Windows: 1May 6 Linux: 1 Mac: 1 Windows: 0May 5 Linux: 2 Mac: 1 Windows: 1May 4 Linux: 0 Mac: 1 Windows: 1May 3 Linux: 1 Mac: 4 Windows: 0May 2 Linux: 0 Mac: 1 Windows: 1May 1 Linux: 0 Mac: 0 Windows: 2Apr 30 Linux: 0 Mac: 1 Windows: 2Apr 29 Linux: 1 Mac: 2 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 2Apr 27 Linux: 2 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 1 Windows: 0Apr 25 Linux: 1 Mac: 4 Windows: 4Apr 24 Linux: 0 Mac: 2 Windows: 2Apr 23 Linux: 1 Mac: 2 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 1 Mac: 1 Windows: 4Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 1 Mac: 1 Windows: 2Jun 3 Linux: 3 Mac: 0 Windows: 2Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 1 Mac: 0 Windows: 2May 31 Linux: 0 Mac: 0 Windows: 1May 30 Linux: 1 Mac: 3 Windows: 3May 29 Linux: 0 Mac: 2 Windows: 0May 28 Linux: 0 Mac: 1 Windows: 3May 27 Linux: 0 Mac: 1 Windows: 2May 26 Linux: 0 Mac: 2 Windows: 0May 25 Linux: 0 Mac: 1 Windows: 0May 24 Linux: 1 Mac: 0 Windows: 3May 23 Linux: 0 Mac: 1 Windows: 2May 22 Linux: 1 Mac: 2 Windows: 2May 21 Linux: 1 Mac: 0 Windows: 2May 20 Linux: 1 Mac: 2 Windows: 0May 19 Linux: 0 Mac: 3 Windows: 2May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 1 Windows: 3May 16 Linux: 0 Mac: 2 Windows: 3May 15 Linux: 0 Mac: 1 Windows: 1May 14 Linux: 0 Mac: 1 Windows: 2May 13 Linux: 0 Mac: 3 Windows: 2May 12 Linux: 0 Mac: 0 Windows: 4May 11 Linux: 0 Mac: 0 Windows: 2May 10 Linux: 0 Mac: 0 Windows: 2May 9 Linux: 0 Mac: 1 Windows: 1May 8 Linux: 0 Mac: 0 Windows: 3May 7 Linux: 2 Mac: 1 Windows: 1May 6 Linux: 1 Mac: 1 Windows: 0May 5 Linux: 2 Mac: 1 Windows: 1May 4 Linux: 0 Mac: 1 Windows: 1May 3 Linux: 1 Mac: 4 Windows: 0May 2 Linux: 0 Mac: 1 Windows: 1May 1 Linux: 0 Mac: 0 Windows: 2Apr 30 Linux: 0 Mac: 1 Windows: 2Apr 29 Linux: 1 Mac: 2 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 2Apr 27 Linux: 2 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 1 Windows: 0Apr 25 Linux: 1 Mac: 4 Windows: 4Apr 24 Linux: 0 Mac: 2 Windows: 2Apr 23 Linux: 1 Mac: 2 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 1 Mac: 1 Windows: 4Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 1 Mac: 1 Windows: 2

Readme

Source
raw.​githubusercontent.​com

Project is discontinued!

I'm not using Sublime Text anymore and have no interest in supporting this project.

If you want to carry on, you have my full permission - and gratitude!

Clickable URLs

A plugin for Sublime Text 2 and 3

Screenshot of a clickable URL

Breaking change! The open_url command is named open_url_under_cursor since v1.3.0 to avoid conflict with the built-in command with the same name. Please update your configuration if you've made custom bindings.

Summary

This plugin underlines URLs in Sublime Text, and lets you open them with a keystroke (Cmd+Option+Enter by default).

After you put the cursor over an URL, you can either hit Cmd+Option+Enter (Ctrl+Alt+Enter on Windows & Linux), or select “Open URL under cursor” from the Command Palette. Instead of selecting an auto detected URL, you can select any block of text and it will also open in a browser as a URL.

If you actually want to use a mouse+key combination to open URLs, you'll have to part with one of the selection modes (likely the Option-selection, which is rectangular block selection and is not used very often). See this issue for details and examples on how to do it. Unfortunately Sublime Text's API is not flexible with mouse bindings.

There is also an “Open all URLs” command, which opens all URLs found in the current document.

Performance warning. The plugin is automatically disabled if the document has more than 200 URLs, in order to avoid a massive performance hit. To change this number, set the max_url_limit option (see “Configuration” below).

Installation

With Package Control (look for Clickable Urls), or just drop the plugin into Sublime Text's Packages folder.

Configuration

All configuration is done via the settings file that you can open via the main menu: Preferences > Package Settings > Clickable URLs > Settings - User.

To rebind mouse keys, open Preferences > Package Settings > Clickable URLs > Mouse Bindings - User

Customising the browser

By default, Clickable URLs uses some default system browser. If it doesn't work for you, you can change the browser by setting the clickable_urls_browser in the ClickableUrls.sublime-settings file, to which you can get from the menu.

Anything from this list will work, for example:

{
    "clickable_urls_browser": "firefox"
}

Note for Windows users. If the browser you want won't open, you might have to specify the full path manually:

{
    "clickable_urls_browser": "\"c:\\program files\\mozilla firefox\\firefox.exe\" %s &"
}

Take note of the escaped slashes and the quoting around the name.

The ampersand at the end is significant - without it the editor will hang and wait for browser to close.

Disabling URL highlighting

Unfortunately, the only way to underline a block of text in Sublime Text 2 is a hack with underlining empty regions, and there is no way to control its appearance. If you want, you can disable URL highlighting by setting the option highlight_urls to false.

{
    "highlight_urls": false
}

Note that this isn't an issue with Sublime Text 3.

Known Issues

  • URLs are not underlined in Markdown files when using the MarkdownEditing plugin plugin (that plugin applies its own styles to the URLs). Otherwise ClickableUrls works as usual.

© 2015 Leonid Shevtsov under the MIT license.