open-in-browsers

Open in IE/Chrome/Firefox/Opera

skandasoft

251,285

108

0.0.30

MIT

GitHub

This package consumes the following services:

open-in-browsers

  1. Open Current File in Different Browsers - IE,Chrome,Firefox,Opera,BrowserPlus
  2. Access browser list from context Menu/status bar
  3. customize the list of browser being displayed through settings
  4. With Support for localhost(enable it using settings)
  5. Ability to add custom browsers.

Opening Browsers are available in status bar

open-in-browsers

Browser List in context menu(possible to limit the list of browsers by settings)

open-in-browsers

Update: Ability to add New Browsers
command open-in-browsers:addBrowser

Update: 05/25/2017
open-in-browsers:addBrowser - removed the command. as it makes the package complicated.

Adding new browsers can be done by PR(Pull Request). Check the lib/config.coffee and send the cmd needed for opening the browser. I can also add if you send me the details of browsers/cmd

Microsoft-Edge doesn't yet allow opening file system files..Once it allows this plugin will start to work automatically.

How to Add Your Browser

ChromePortable/FirefoxPortable/SafariPortable can be used to define your own browser through setting. Fill the path to your custom browser / tooltip/color to differentiate the icons from chrome/Firefox/safari

fix to issue https://github.com/skandasoft/open-in-browsers/issues/34
path to browser has to be maintained within quotes if there are spaces in the path
for eg. C:\"Program Files\Mozilla Firefox"\firefox.exe

How to View from local host?
Maintain "proj.json" file in the root directory of the project root folder. The file name can be configured from settings, but has to be in the root folder.
Here is sample structure of the file

{
	"localhost": {
		"url": "http://localhost:8000",
		"folder": "C:/Users/admin/myproj/public"
	}
}

There are 2 parameters:

  1. url: This is base url against which the file path will be shown. Just maintaining url would make the file path being added to end of the maintained url.
  2. folder: folder directory will be compared with the path of the file being displayed and will be replaced for eg. in the above case if you view a file under the root directory
/public/view/hello.html  
would be shown as
http://localhost:8000/view/hello.html

This can be maintained differently for each project under each project's root directory.