Skip to content

Instantly share code, notes, and snippets.

@linkarys
Last active December 15, 2015 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linkarys/5254546 to your computer and use it in GitHub Desktop.
Save linkarys/5254546 to your computer and use it in GitHub Desktop.
sublime: openbrowser
import sublime, sublime_plugin
import webbrowser
class openBrowser(sublime_plugin.TextCommand):
def run(self, edit):
url = self.view.file_name();
webbrowser.open_new(url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment