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

Open​In​Browser

by bteryek ST2/ST3

On save opens up a user defined URL in your default web browser

Details

Installs

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

Readme

Source
bitbucket.​org

OpenInBrowser

On save opens up a user defined URL in your default web browser.

Introduction

There are several plugins out there that will refresh or open up a file in the browser. However, they are usually limited to opening open the file you are working on.

With OpenInBrowser, when you save a file, we scan your configuration settings and look for a match against the current file. If the file you saved matches the pattern you specified, OpenInBrowser will open up the associated url in your default web browser.

Configuration

The configuration file is an array of objects. Each object has a single key, which is the pattern to test the saved file against. The value is the associated url you want to open if the file is matched.

Each object is checked in the order they appear in the array. Once it finds a match, it will execute and open up the associated url.

[

    {"index.html": "http://idevelopsolutions.com"},
    {"index.(html|php)": "http://idevelopsolutions.com"},
    {"index.(html|php)": "http://idevelopsolutions.com/index.$1"}

]

Simple Match

{"index.html": "http://idevelopsolutions.com"}

If you are working on a file that matches the “index.html” pattern, it will open up http://idevelopsolutions.com

Regex Match

{"index.(html|php)": "http://idevelopsolutions.com"}

Files that match “index.html” or “index.php” will open up http://idevelopsolutions.com

Advanced Regex Match

If you want to use groups from the regex pattern in the url you wish to open, use $n syntax to backreference a group.

{"index.(html|php)": "http://idevelopsolutions.com/index.$1"}

Files that match index.html or index.php will open up

Install From Package Control

  1. Search for OpenInBrowser.

Install Manually:

  1. Create a folder in the packages directory called “OpenInBrowser”
  2. Download the latest tag, unzip and place the files in the “OpenInBrowser” directory.

Video Tutorial

http://www.youtube.com/watch?v=MCmIazjhq9A

Install Duplicate Tab Plugin for your Browser

It is highly recommended you install a duplicate tab plugin for your web browser if you do not want to keep opening up the same url(s) in new tabs.

I wrote a Chrome plugin that works with OpenInBrowser Plugin:

Check out my other plugin: