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 152
  • Win 80
  • OS X 44
  • Linux 28
Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1
Windows 0 1 0 1 1 0 0 3 0 2 1 3 0 0 2 1 2 1 0 0 1 0 0 1 5 2 0 1 1 0 1 1 0 0 1 3 2 0 0 3 0 1 0 3 0 3
OS X 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 2 0 0 1 1 0 3 1 0 0 0 1 2 3 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 2
Linux 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 2 0 2 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 2

Readme

Source
raw.​githubusercontent.​com

Sublime-OpenUri

Travis (.org) branch Package Control GitHub tag (latest SemVer) Project license GitHub stars

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

screenshot

OpenUri is a Sublime Text 3 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

The PhantomSet implementation before ST 3212 (not released yet) 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

Reference: https://github.com/SublimeTextIssues/Core/issues/2897#issuecomment-514868381

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

You may also add a mouse binding for select_uri_from_cursors. There are just too few modifier keys to be chosen so I am not adding a default one for it.

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