Skip to content

Commit

Permalink
Hide panel from panel switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jun 23, 2016
1 parent 5a3351e commit 31bbc89
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Default.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@
{
"caption": "Scope Hunter: Toggle Instant Scoper",
"command": "toggle_selection_scope"
},
// Generate color scheme CSS
{
"caption": "Scope Hunter: Generate Color Scheme CSS",
"command": "scope_hunter_generate_css"
}
]
35 changes: 35 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,41 @@ Show scope under cursor or cursors (depending whether multi-select is enabled).
### Scope Hunter: Toggle Instant Scoper
Toggle scoping under cursor constantly.

### Scope Hunter: Generate Color Scheme CSS
Generate CSS from valid scopes in color scheme. This is great for dropping in Sublime tooltips.

Example output:

```css
.foreground { color: #CCCCCC; }
.background { background-color: #232628; }
.comment { color: #888888; }
.constant.other { color: #CCCCCC; }
.entity.name.tag { color: #F2777A; }
.entity.other.attribute-name { color: #F2777A; }
.constant.numeric { color: #F99157; }
.support.constant { color: #F99157; }
.constant.character { color: #F99157; }
.variable.parameter { color: #F99157; }
.support.type { color: #FFCC66; }
.support.class { color: #FFCC66; }
.string { color: #99CC99; }
.entity.other.inherited-class { color: #99CC99; }
.markup.heading { color: #99CC99; }
.keyword.operator { color: #66CCCC; }
.entity.name.function { color: #6699CC; }
.support.function { color: #6699CC; }
.keyword { color: #CC99CC; }
.storage { color: #CC99CC; }
.storage.type { color: #CC99CC; }
.invalid { color: #FAFDFF; background-color: #F2777A; }
.invalid.deprecated { color: #FAFDFF; background-color: #CC99CC; }
.variable.language { color: #FFCC66; }
.markup.underline.link { color: #99CCCC; }
.markup.bold { color: #CC99CC; font-weight: bold; }
.markup.italic { color: #CC99CC; font-style: italic; }
```

## Scope Hunter: User Settings
In order to change the standard settings of Scope Hunter, please go to `Preferences -> Package Settings -> Scope Hunter` and click on `Settings - User`. Repeat that for `Settings - Default`, copy all the settings that you wish to change from the default settings to the user settings file.

Expand Down
4 changes: 3 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"1.5.0": "messages/1.5.0.md",
"2.0.0": "messages/2.0.0.md",
"2.1.0": "messages/2.1.0.md"
"2.1.0": "messages/2.1.0.md",
"2.2.0": "messages/2.2.0.md",
"2.3.0": "messages/2.3.0.md"
}
6 changes: 6 additions & 0 deletions messages/2.3.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ScopeHunter 2.3.0

## Changes

- New command to generate CSS (for tooltips) from valid scopes in color scheme
- ScopeHunter panel is hidden from panel switcher
6 changes: 3 additions & 3 deletions scope_hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def run(self, v):

self.view = v
self.window = self.view.window()
view = self.window.get_output_panel('scope_viewer')
view = self.window.create_output_panel('scopehunter.results', unlisted=True)
self.scope_bfr = []
self.scope_bfr_tool = []
self.clips = []
Expand Down Expand Up @@ -543,7 +543,7 @@ def run(self, v):
ScopeHunterEditCommand.pt = 0
view.run_command('scope_hunter_edit')
ScopeHunterEditCommand.clear()
self.window.run_command("show_panel", {"panel": "output.scope_viewer"})
self.window.run_command("show_panel", {"panel": "output.scopehunter.results"})

if self.console_log:
print('\n'.join(["Scope Hunter"] + self.scope_bfr))
Expand Down Expand Up @@ -603,7 +603,7 @@ def run(self):
else:
win = sublime.active_window()
if win is not None:
view = win.get_output_panel('scope_viewer')
view = win.get_output_panel('scopehunter.results')
parent_win = view.window()
if parent_win:
parent_win.run_command('hide_panel', {'cancel': True})
Expand Down

0 comments on commit 31bbc89

Please sign in to comment.