Merge pull request #31 from freewizard/master

add "Wakatime: Open Dashboard" into command palette
This commit is contained in:
Alan Hamlett 2015-02-23 22:16:39 -08:00
commit 308187b2ed
2 changed files with 14 additions and 0 deletions

6
Default.sublime-commands Normal file
View File

@ -0,0 +1,6 @@
[
{
"caption": "Wakatime: Open Dashboard",
"command": "wakatime_dashboard"
}
]

View File

@ -245,3 +245,11 @@ class WakatimeListener(sublime_plugin.EventListener):
def on_modified(self, view):
handle_action(view)
import webbrowser
class WakatimeDashboardCommand(sublime_plugin.ApplicationCommand):
def run(self):
webbrowser.open_new_tab('https://wakatime.com/dashboard')