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 27K
  • Win 18K
  • OS X 6K
  • Linux 3K
Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 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
Windows 4 8 6 8 8 6 9 14 9 8 5 7 7 16 8 8 5 4 4 7 6 6 6 6 11 5 11 14 8 4 2 11 3 6 8 10 10 12 1 0 0 7 12 13 7 9
OS X 1 3 4 3 2 3 0 4 1 2 1 0 0 2 2 1 1 2 0 3 0 1 0 0 1 1 2 3 3 3 1 3 0 1 4 3 2 2 1 0 0 4 3 1 3 1
Linux 1 0 2 3 0 1 1 0 1 2 1 2 0 1 0 1 0 2 1 1 3 0 3 2 1 2 0 0 1 1 0 1 3 0 0 2 0 0 0 0 0 0 1 2 0 1

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: