add "Wakatime: Open Dashboard" into command palette
This commit is contained in:
parent
4960289ed1
commit
97f4077675
|
@ -0,0 +1,6 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"caption": "Wakatime: Open Dashboard",
|
||||||
|
"command": "wakatime_dashboard"
|
||||||
|
}
|
||||||
|
]
|
|
@ -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')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue