Skip to content

Instantly share code, notes, and snippets.

@cannikin
Last active December 8, 2015 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannikin/5c3f6370ffa003490fe2 to your computer and use it in GitHub Desktop.
Save cannikin/5c3f6370ffa003490fe2 to your computer and use it in GitHub Desktop.
Sublime Text Settings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TestConsoleTheme</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
<string>#000000</string>
<key>caret</key>
<string>#A7A7A7</string>
<key>foreground</key>
<string>#F8F8F8</string>
<key>invisibles</key>
<string>#CAE2FB3D</string>
<key>lineHighlight</key>
<string>#FFFFFF0D</string>
<key>selection</key>
<string>#DDF0FF33</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.pass</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8F9D6A</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.error</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF3350</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.fail</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CF6A4C</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.cucumber</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFcc66</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.skipped</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#7587A6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.pending</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CDA869</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.comment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#545454</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Test</string>
<key>scope</key>
<string>test.hidden_comment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
</dict>
</dict>
</array>
<key>uuid</key>
<string>72174d10-bb12-11e0-962b-112233445577</string>
</dict>
</plist>
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"auto_match_enabled": false,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"drag_text": false,
"enable_tab_scrolling": false,
"enable_telemetry": true,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"font_face": "Menlo",
"font_size": 14.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"AdvancedNewFile",
"Markdown",
"Vintage"
],
"rulers":
[
80
],
"show_encoding": true,
"show_line_endings": true,
"smart_indent": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}
[
{ "keys": ["super+shift+r"], "command": "run_single_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // single test
{ "keys": ["super+shift+t"], "command": "run_all_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // test file
{ "keys": ["super+shift+e"], "command": "run_last_ruby_test" }, // test last test file
{ "keys": ["super+shift+x"], "command": "show_test_panel" }, // show test panel
{ "keys": ["alt+shift+v"], "command": "verify_ruby_file",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby"
} ]
}, // verify ruby syntax
{ "keys": ["super+period"],
"command": "switch_between_code_and_test",
"args": {"split_view": false},
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // switch between code and test in single mode
{ "keys": ["super+ctrl+period"],
"command": "switch_between_code_and_test",
"args": {"split_view": true},
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // switch between code and test in split view
{ "keys": ["super+shift+c"], "command": "generate_file" } // create new file
]
{
"run_ruby_unit_command": "source /usr/local/opt/chruby/share/chruby/chruby.sh && chruby `cat .ruby-version` && bundle exec ruby -Itest {relative_path}",
"run_single_ruby_unit_command": "source /usr/local/opt/chruby/share/chruby/chruby.sh && chruby `cat .ruby-version` && bundle exec ruby -Itest {relative_path} -n '{test_name}'",
"run_rspec_command": "source /usr/local/opt/chruby/share/chruby/chruby.sh && chruby `cat .ruby-version` && bin/rspec {relative_path}",
"run_single_rspec_command": "source /usr/local/opt/chruby/share/chruby/chruby.sh && chruby `cat .ruby-version` && bin/rspec {relative_path}:{line_number}",
"theme": "Packages/User/RubyTest-Twilight.tmTheme"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment