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

Open​In​Browser

by bteryek ALL

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

Details

Installs

  • Total 38K
  • Win 26K
  • Mac 8K
  • Linux 4K
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 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20
Windows 0 1 0 0 3 1 3 3 1 0 0 1 3 0 2 0 2 0 3 12 1 1 0 2 4 1 3 2 2 3 1 1 1 4 1 1 1 1 0 6 1 1 1 2 0 10
Mac 1 0 0 0 0 2 0 0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 0 0 3 1 2 0 0 0 1 0 1 1 2 1 1 0 2 0 1 1 0 0 0 0
Linux 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
0510May 4May 1Apr 28Apr 25Apr 22Apr 19Apr 16Apr 13Apr 10Apr 7Apr 4Apr 1Mar 29Mar 26Mar 23Mar 20May 4 Linux: 0 Mac: 1 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 3Apr 29 Linux: 1 Mac: 2 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 3Apr 27 Linux: 1 Mac: 0 Windows: 3Apr 26 Linux: 0 Mac: 0 Windows: 1Apr 25 Linux: 0 Mac: 1 Windows: 0Apr 24 Linux: 0 Mac: 1 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 1Apr 22 Linux: 0 Mac: 1 Windows: 3Apr 21 Linux: 0 Mac: 1 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 2Apr 17 Linux: 1 Mac: 1 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 3Apr 15 Linux: 2 Mac: 0 Windows: 12Apr 14 Linux: 0 Mac: 0 Windows: 1Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 2Apr 10 Linux: 1 Mac: 3 Windows: 4Apr 9 Linux: 0 Mac: 1 Windows: 1Apr 8 Linux: 0 Mac: 2 Windows: 3Apr 7 Linux: 0 Mac: 0 Windows: 2Apr 6 Linux: 0 Mac: 0 Windows: 2Apr 5 Linux: 0 Mac: 0 Windows: 3Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 0 Mac: 0 Windows: 1Apr 2 Linux: 0 Mac: 1 Windows: 1Apr 1 Linux: 0 Mac: 1 Windows: 4Mar 31 Linux: 0 Mac: 2 Windows: 1Mar 30 Linux: 0 Mac: 1 Windows: 1Mar 29 Linux: 1 Mac: 1 Windows: 1Mar 28 Linux: 0 Mac: 0 Windows: 1Mar 27 Linux: 0 Mac: 2 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 6Mar 25 Linux: 0 Mac: 1 Windows: 1Mar 24 Linux: 0 Mac: 1 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 0 Windows: 2Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 10May 4 Linux: 0 Mac: 1 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 3Apr 29 Linux: 1 Mac: 2 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 3Apr 27 Linux: 1 Mac: 0 Windows: 3Apr 26 Linux: 0 Mac: 0 Windows: 1Apr 25 Linux: 0 Mac: 1 Windows: 0Apr 24 Linux: 0 Mac: 1 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 1Apr 22 Linux: 0 Mac: 1 Windows: 3Apr 21 Linux: 0 Mac: 1 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 2Apr 17 Linux: 1 Mac: 1 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 3Apr 15 Linux: 2 Mac: 0 Windows: 12Apr 14 Linux: 0 Mac: 0 Windows: 1Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 2Apr 10 Linux: 1 Mac: 3 Windows: 4Apr 9 Linux: 0 Mac: 1 Windows: 1Apr 8 Linux: 0 Mac: 2 Windows: 3Apr 7 Linux: 0 Mac: 0 Windows: 2Apr 6 Linux: 0 Mac: 0 Windows: 2Apr 5 Linux: 0 Mac: 0 Windows: 3Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 0 Mac: 0 Windows: 1Apr 2 Linux: 0 Mac: 1 Windows: 1Apr 1 Linux: 0 Mac: 1 Windows: 4Mar 31 Linux: 0 Mac: 2 Windows: 1Mar 30 Linux: 0 Mac: 1 Windows: 1Mar 29 Linux: 1 Mac: 1 Windows: 1Mar 28 Linux: 0 Mac: 0 Windows: 1Mar 27 Linux: 0 Mac: 2 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 6Mar 25 Linux: 0 Mac: 1 Windows: 1Mar 24 Linux: 0 Mac: 1 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 0 Windows: 2Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 10May 4 Linux: 0 Mac: 1 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 3Apr 29 Linux: 1 Mac: 2 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 3Apr 27 Linux: 1 Mac: 0 Windows: 3Apr 26 Linux: 0 Mac: 0 Windows: 1Apr 25 Linux: 0 Mac: 1 Windows: 0Apr 24 Linux: 0 Mac: 1 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 1Apr 22 Linux: 0 Mac: 1 Windows: 3Apr 21 Linux: 0 Mac: 1 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 2Apr 17 Linux: 1 Mac: 1 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 3Apr 15 Linux: 2 Mac: 0 Windows: 12Apr 14 Linux: 0 Mac: 0 Windows: 1Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 2Apr 10 Linux: 1 Mac: 3 Windows: 4Apr 9 Linux: 0 Mac: 1 Windows: 1Apr 8 Linux: 0 Mac: 2 Windows: 3Apr 7 Linux: 0 Mac: 0 Windows: 2Apr 6 Linux: 0 Mac: 0 Windows: 2Apr 5 Linux: 0 Mac: 0 Windows: 3Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 0 Mac: 0 Windows: 1Apr 2 Linux: 0 Mac: 1 Windows: 1Apr 1 Linux: 0 Mac: 1 Windows: 4Mar 31 Linux: 0 Mac: 2 Windows: 1Mar 30 Linux: 0 Mac: 1 Windows: 1Mar 29 Linux: 1 Mac: 1 Windows: 1Mar 28 Linux: 0 Mac: 0 Windows: 1Mar 27 Linux: 0 Mac: 2 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 6Mar 25 Linux: 0 Mac: 1 Windows: 1Mar 24 Linux: 0 Mac: 1 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 1Mar 22 Linux: 0 Mac: 0 Windows: 2Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 10

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: