OpenInBrowser
On save opens up a user defined URL in your default web browser
Details
Installs
- Total 37K
- Win 25K
- Mac 8K
- Linux 4K
Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 11 | 3 | 6 | 3 | 3 | 1 | 0 | 3 | 0 | 1 | 0 | 5 | 6 | 4 | 1 | 5 | 6 | 4 | 2 | 1 | 0 | 8 | 3 | 2 | 8 | 2 | 6 | 1 | 2 | 1 | 3 | 1 | 6 | 0 | 4 | 2 | 3 | 4 | 3 | 4 | 1 | 1 | 7 | 5 | 1 | 4 |
Mac | 0 | 0 | 1 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 0 | 1 | 1 | 2 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 3 | 0 | 0 |
Linux | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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
- Search for OpenInBrowser.
Install Manually:
- Create a folder in the packages directory called “OpenInBrowser”
- 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: