add "Wakatime: Open Dashboard" into command palette

This commit is contained in:
Du Song 2015-02-23 17:59:10 -05:00
parent 4960289ed1
commit 97f4077675
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): def on_modified(self, view):
handle_action(view) handle_action(view)
import webbrowser
class WakatimeDashboardCommand(sublime_plugin.ApplicationCommand):
def run(self):
webbrowser.open_new_tab('https://wakatime.com/dashboard')