Skip to content

Commit

Permalink
Only switch between code and spec for js files
Browse files Browse the repository at this point in the history
  • Loading branch information
gja committed Dec 17, 2011
1 parent 7edfa84 commit f5fe41b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[
{ "keys": ["ctrl+period"], "command": "jasmine_switch_between_code_and_spec" } // switch between code and test
{ "keys": ["ctrl+period"], "command": "jasmine_switch_between_code_and_spec", "context" : [
{ "key": "selector", "operator": "equal", "operand": "source.js", "match_all": true }
]} // switch between code and test
]
4 changes: 3 additions & 1 deletion Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[
{ "keys": ["super+period"], "command": "jasmine_switch_between_code_and_spec" } // switch between code and test
{ "keys": ["super+period"], "command": "jasmine_switch_between_code_and_spec", "context" : [
{ "key": "selector", "operator": "equal", "operand": "source.js", "match_all": true }
]} // switch between code and test
]
4 changes: 3 additions & 1 deletion Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[
{ "keys": ["ctrl+period"], "command": "jasmine_switch_between_code_and_spec" } // switch between code and test
{ "keys": ["ctrl+period"], "command": "jasmine_switch_between_code_and_spec", "context" : [
{ "key": "selector", "operator": "equal", "operand": "source.js", "match_all": true }
]} // switch between code and test
]

0 comments on commit f5fe41b

Please sign in to comment.