mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
add "Wakatime: Open Dashboard" into command palette
This commit is contained in:
parent
4960289ed1
commit
97f4077675
6
Default.sublime-commands
Normal file
6
Default.sublime-commands
Normal file
@ -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):
|
||||
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
Block a user