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

Open​Uri

by jfcherng ST3

The ultimate Sublime Text 3 plugin for opening URIs (URLs) in your file.

Labels shortcut, url, uri, browser

Details

Installs

  • Total 537
  • Win 309
  • Mac 143
  • Linux 85
Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14
Windows 0 2 2 0 0 0 1 0 0 1 1 1 0 2 1 1 1 1 0 0 1 0 0 3 1 1 0 1 0 1 0 0 0 1 1 1 0 0 0 0 1 1 0 1 0
Mac 4 0 1 0 0 0 1 0 1 0 1 2 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

ST-OpenUri

Required ST Build Travis (.org) branch Package Control GitHub tag (latest SemVer) Project license GitHub stars Donate to this project using Paypal

Finally! A performant and highly customizable URI-opening plugin comes.

screenshot

OpenUri is a Sublime Text plugin which provides an easy access to URIs (mostly URLs) in a file by clicking on a phantom, the popup or key/mouse bindings.

Bug fix for PhantomSet in ST 3

If you are using ST 4, just ignore this section.

The official PhantomSet implementation in Sublime Text 3 is buggy. You can fix it by overwriting it with a patched sublime.py. Remember, backup sublime.py before patching it.

  • On Windows: C:\Program Files\Sublime Text 3\sublime.py
  • On Linux: /opt/sublime_text/sublime.py
  • On Mac OSX: /Applications/Sublime Text.app/Contents/MacOS/sublime.py

Installation

This plugin is available on Package Control by the name of OpenUri.

Note that this plugin only supports ST >= 3118 because of Phantom API.

💡 You may also be interested in my other plugins: https://packagecontrol.io/search/jfcherng

Settings

To edit settings, go to Preferences » Package Settings » OpenUri » Settings.

I try to make the settings file self-explanatory. But if you still have questions, feel free to open an issue.

Default Bindings

Key Binding

  • Alt + o, Alt + u: Open URIs from (multiple) cursors. o, u is mnemonic for Open, URI.

Mouse Binding

  • Ctrl + Right Click: Open the clicked URI. (open_context_url)

How to disable default bindings

If you do not want those default key/mouse bindings, you can use an empty one to overwrite them. Or if you want to change them, you can use a non-empty one.

Here I take the default mouse binding as an example.

  1. Go to Preferences » Browser Packages....
  2. Create file OpenUri/bindings/Default.sublime-mousemap (and its parent directories if necessary).
  3. Fill Default.sublime-mousemap with []. Then this Default.sublime-mousemap will overwrite this plugin's.

Commands

These commands are always available no matter what show_open_button is or how large the file is.

Command Functionality
open_uri_from_cursors Open URIs from cursors
open_uri_from_view Open URIs from the current view
select_uri_from_cursors Select URIs from cursors
select_uri_from_view Select URIs from the current view