Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
add to menu and command
Browse files Browse the repository at this point in the history
  • Loading branch information
akira-cn committed Feb 1, 2012
1 parent 78ad91d commit 616b0c4
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Default.sublime-commands
@@ -0,0 +1,10 @@
[
{
"caption": "V8: Run JSHint",
"command": "js_hint"
},
{
"caption": "V8: Show Console",
"command": "js_console"
}
]
58 changes: 58 additions & 0 deletions Main.sublime-menu
@@ -0,0 +1,58 @@
[
{
"id": "tools",
"children":
[
{
"caption": "V8",
"id": "V8",
"children":
[
{
"caption": "Run JSHint",
"command": "js_hint"
},
{
"caption": "Show Console",
"command": "js_console"
}
]
}
]
},
{
"id": "preferences",
"children":
[
{
"caption": "Package Settings",
"id": "package-settings",
"children":
[
{
"caption": "V8",
"children":
[
{
"caption": "JSHINT Settings – Default",
"command": "open_file",
"args":
{
"file": "${packages}/sublime-V8/JSHINT.sublime-settings"
}
},
{
"caption": "JSHINT Settings – User",
"command": "open_file",
"args":
{
"file": "${packages}/User/JSHINT.sublime-settings"
}
}
]
}
]
}
]
}
]
2 changes: 0 additions & 2 deletions jshint.py
Expand Up @@ -21,8 +21,6 @@ def __init__(self, window):
def run(self):
view = self.window.active_view()
jsscopes = view.find_by_selector('source.js - entity.name.tag.script.html - punctuation.definition.tag.html')
if(not jsscopes):
return

self.window.run_command("show_panel", {"panel": "output."+JSHINT_VIEW_NAME})
#self.window.focus_view(self.panel)
Expand Down

0 comments on commit 616b0c4

Please sign in to comment.