Merge pull request #31 from freewizard/master
add "Wakatime: Open Dashboard" into command palette
This commit is contained in:
commit
308187b2ed
2 changed files with 14 additions and 0 deletions
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 a new issue