Permalink
Browse files

add browse command

  • Loading branch information...
1 parent 12cd43f commit 60cc92803d793195af087368e4e2a6fd6bc43887 @blopker blopker committed Dec 17, 2014
Showing with 11 additions and 2 deletions.
  1. +5 −1 Default.sublime-commands
  2. +6 −1 colorsublime-plugin.py
@@ -1,6 +1,10 @@
[
{
"caption": "Colorsublime: Install Theme",
- "command": "colorsublime_install_theme"
+ "command": "install_theme"
+ },
+ {
+ "caption": "Colorsublime: Browse Themes",
+ "command": "browse"
}
]
@@ -16,7 +16,7 @@
reloader.reload()
-class ColorsublimeInstallThemeCommand(sublime_plugin.WindowCommand):
+class InstallThemeCommand(sublime_plugin.WindowCommand):
def run(self):
print('Running install command.')
self.theme_status = {}
@@ -55,3 +55,8 @@ def on_select(self, theme_index):
theme = self.themes[theme_index]
commands.install_theme(theme)
status.message('Theme %s installed!' % theme.name)
+
+
+class BrowseCommand(sublime_plugin.WindowCommand):
+ def run(self):
+ self.window.run_command('open_url', {'url': 'http://colorsublime.com'})

0 comments on commit 60cc928

Please sign in to comment.