adampresley / sublime-view-in-browser

Open the contents of your current view/tab in a web browser
MIT License
271 stars 67 forks source link

Add support for Microsoft Edge #70

Open TrevorSayre opened 7 years ago

TrevorSayre commented 7 years ago

The command to open a URI in Microsoft Edge is:
start microsoft-edge:http://www.google.com

Problematically, the method used to open a URI in this package is to use the stored command and append a space and the URI:

if pluginSettings["baseCommand"]:
  command = "%s %s" % (pluginSettings["baseCommand"], fileToOpen.decode().encode(sys.getfilesystemencoding()) if self._pythonVersion < 3 else fileToOpen,)

The command for Microsoft Edge does not work with a space between the command and the URI, so a special case will need to be added.