├── Package Control.last-run ├── Default (Linux).sublime-keymap ├── Default (Windows).sublime-keymap ├── .gitignore ├── Macros ├── HashRocket.sublime-macro ├── GetText.sublime-macro ├── GetTextErb.sublime-macro └── Params.sublime-macro ├── README.md ├── DetectSyntax.sublime-settings ├── Preferences.sublime-settings ├── RubyTest.sublime-settings └── Default (OSX).sublime-keymap /Package Control.last-run: -------------------------------------------------------------------------------- 1 | 1362488366 -------------------------------------------------------------------------------- /Default (Linux).sublime-keymap: -------------------------------------------------------------------------------- 1 | [ 2 | ] 3 | -------------------------------------------------------------------------------- /Default (Windows).sublime-keymap: -------------------------------------------------------------------------------- 1 | [ 2 | ] 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Package\ Control.sublime-settings 2 | Package\ Control.last-run 3 | RubyTest.last-run 4 | -------------------------------------------------------------------------------- /Macros/HashRocket.sublime-macro: -------------------------------------------------------------------------------- 1 | [ 2 | {"args": {"characters": " => "}, "command": "insert"} 3 | ] 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Nothing awesome...just my User Sublime folder 2 | 3 | some more details about plugins is here https://gist.github.com/3096729. 4 | 5 | 6 | -------------------------------------------------------------------------------- /Macros/GetText.sublime-macro: -------------------------------------------------------------------------------- 1 | [ 2 | { "args": null, "command": "cut" }, 3 | { "args": {"contents": "_(\"$0\")" }, "command": "insert_snippet"}, 4 | { "args": null, "command": "paste" } 5 | ] 6 | -------------------------------------------------------------------------------- /Macros/GetTextErb.sublime-macro: -------------------------------------------------------------------------------- 1 | [ 2 | { "args": null, "command": "cut" }, 3 | { "args": {"contents": "<%= _(\"$0\") %>" }, "command": "insert_snippet"}, 4 | { "args": null, "command": "paste" } 5 | ] 6 | -------------------------------------------------------------------------------- /DetectSyntax.sublime-settings: -------------------------------------------------------------------------------- 1 | 2 | { 3 | // If you want exceptions reraised so you can see them in the console, change this to true. 4 | "reraise_exceptions": false, 5 | 6 | // If you want to have a syntax applied when new files are created, set new_file_syntax to the name of the syntax to use. 7 | // The format is exactly the same as "name" in the rules below. For example, if you want to have a new file use 8 | // JavaScript syntax, set new_file_syntax to 'JavaScript'. 9 | "new_file_syntax": false, 10 | 11 | // Put your custom syntax rules here: 12 | "syntaxes": [ 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /Macros/Params.sublime-macro: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "args": 4 | { 5 | "characters": "params" 6 | }, 7 | "command": "insert" 8 | }, 9 | { 10 | "args": 11 | { 12 | "contents": "[$0]" 13 | }, 14 | "command": "insert_snippet" 15 | }, 16 | { 17 | "args": 18 | { 19 | "characters": ":id" 20 | }, 21 | "command": "insert" 22 | }, 23 | { 24 | "args": 25 | { 26 | "by": "characters", 27 | "extend": true, 28 | "forward": false 29 | }, 30 | "command": "move" 31 | }, 32 | { 33 | "args": 34 | { 35 | "by": "characters", 36 | "extend": true, 37 | "forward": false 38 | }, 39 | "command": "move" 40 | } 41 | ] 42 | -------------------------------------------------------------------------------- /Preferences.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "caret_style": "smooth", 3 | "color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", 4 | "default_line_ending": "system", 5 | "dictionary": "Packages/Language - English/en_US.dic", 6 | "draw_centered": true, 7 | "draw_indent_guides": true, 8 | "file_exclude_patterns": 9 | [ 10 | ".tags", 11 | "tags", 12 | "*log" 13 | ], 14 | "folder_exclude_patterns": 15 | [ 16 | ".bundle", 17 | "tmp", 18 | ".git" 19 | ], 20 | "font_face": "Monaco for Powerline", 21 | "font_size": 12.0, 22 | "highlight_active_indent_guide": true, 23 | "highlight_line": true, 24 | "ignored_packages": 25 | [ 26 | "Vintage" 27 | ], 28 | "rulers": 29 | [ 30 | 80, 31 | 100 32 | ], 33 | "soda_classic_tabs": false, 34 | "spell_check": false, 35 | "tab_size": 2, 36 | "theme": "Soda Dark.sublime-theme", 37 | "translate_tabs_to_spaces": true, 38 | "trim_trailing_white_space_on_save": false, 39 | "vintage_start_in_command_mode": true, 40 | "word_wrap": true, 41 | "wrap_width": 120 42 | } 43 | -------------------------------------------------------------------------------- /RubyTest.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "erb_verify_command": "bundle exec erb -xT - {file_name} | ruby -c", 3 | "ruby_verify_command": "bundle exec ruby -c {file_name}", 4 | 5 | "run_ruby_unit_command": "chruby-exec -- ruby -Itest {relative_path}", 6 | "run_single_ruby_unit_command": "chruby-exec -- ruby -Itest {relative_path} -n '{test_name}'", 7 | 8 | "run_cucumber_command": "bundle exec cucumber {relative_path}", 9 | "run_single_cucumber_command": "bundle exec cucumber {relative_path} -l{line_number}", 10 | 11 | "run_rspec_command": "bundle exec rspec {relative_path}", 12 | "run_single_rspec_command": "bundle exec rspec {relative_path} -l{line_number}", 13 | 14 | "ruby_unit_folder": "test", 15 | "ruby_cucumber_folder": "features", 16 | "ruby_rspec_folder": "spec", 17 | 18 | "check_for_rbenv": true, 19 | "check_for_rvm": true, 20 | 21 | 22 | "ruby_use_scratch" : false, 23 | "save_on_run": false, 24 | 25 | "ignored_directories": [".git", "vendor", "tmp"], 26 | 27 | "hide_panel": false, 28 | 29 | "before_callback": "", 30 | "after_callback": "" 31 | } 32 | -------------------------------------------------------------------------------- /Default (OSX).sublime-keymap: -------------------------------------------------------------------------------- 1 | [ 2 | { "keys": ["super+shift+r", "s"], "command": "run_single_ruby_test" }, // single test 3 | { "keys": ["super+shift+r", "a"], "command": "run_all_ruby_test" }, // test file 4 | { "keys": ["super+shift+r", "l"], "command": "run_last_ruby_test" }, // test file 5 | { "keys": ["super+shift+r", "x"], "command": "show_test_panel" }, // show test panel 6 | { "keys": ["super+shift+r", "f"], "command": "generate_file" }, // create file / folder 7 | 8 | { "keys": ["alt+shift+v"], "command": "verify_ruby_file" }, // verify ruby syntax 9 | { "keys": ["super+period"], "command": "switch_between_code_and_test", "args": {"split_view": false} }, // switch between code and test in single mode 10 | { "keys": ["super+ctrl+period"], "command": "switch_between_code_and_test", "args": {"split_view": true} }, // switch between code and test in split view 11 | { "keys": ["super+shift+r", "n"], "command": "generate_file" }, // create new file 12 | 13 | { "keys": ["super+shift+r", "d"], "command": "go_to_file" }, 14 | { "keys": ["super+shift+r", "i"], "command": "file_info" }, 15 | 16 | { "keys": ["super+alt+up"], "command": "jump_back" }, 17 | { "keys": ["ctrl+shift+."], "command": "erb" }, 18 | { "keys": ["super+shift+r", "c"], "command": "delete_trailing_spaces" }, 19 | 20 | { "keys": ["super+shift+r", "b"], "command": "build", "args": { "variant": "yelp_build" } }, 21 | 22 | { "keys": ["super+ctrl+l"], "command": "run_macro_file", "args": {"file": "Packages/User/Macros/HashRocket.sublime-macro"} }, 23 | 24 | { "keys": ["ctrl+p"], "command": "run_macro_file", "args": {"file": "Packages/User/Macros/Params.sublime-macro"} }, 25 | 26 | { "keys": ["super+shift+r", "g"], 27 | "command": "run_macro_file", "args": {"file": "Packages/User/Macros/GetText.sublime-macro"}, 28 | "context": [ { "key": "selector", "operator": "equal", "operand": "source.ruby" } ] 29 | }, 30 | 31 | { "keys": ["super+shift+r", "g"], 32 | "command": "run_macro_file", "args": {"file": "Packages/User/Macros/GetTextErb.sublime-macro"}, 33 | "context": [ { "key": "selector", "operator": "equal", "operand": "text.html.ruby" } ] 34 | }, 35 | 36 | { "keys": ["alt+d"], 37 | "command": "run_macro_file", "args": {"file": "Packages/GoToFile/GoToFile.sublime-macro"} 38 | }, 39 | 40 | { 41 | "keys": ["alt+1"], 42 | "command": "set_layout", 43 | "args": 44 | { 45 | "cols": [0.0, 1.0], 46 | "rows": [0.0, 1.0], 47 | "cells": [[0, 0, 1, 1]] 48 | } 49 | }, 50 | { 51 | "keys": ["alt+2"], 52 | "command": "set_layout", 53 | "args": 54 | { 55 | "cols": [0.0, 0.5, 1.0], 56 | "rows": [0.0, 1.0], 57 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] 58 | } 59 | }, 60 | { "keys": ["super+shift+h"], "command": "goto_documentation" }, 61 | 62 | { "keys": ["ctrl+alt+up"], "command": "new_pane" }, 63 | { "keys": ["ctrl+alt+down"], "command": "close_pane" }, 64 | { "keys": ["ctrl+alt+left"], "command": "focus_neighboring_group", "args": {"forward": false} }, 65 | { "keys": ["ctrl+alt+right"], "command": "focus_neighboring_group" }, 66 | { "keys": ["super+ctrl+alt+left"], "command": "move_to_neighboring_group", "args": {"forward": false} }, 67 | { "keys": ["super+ctrl+alt+right"], "command": "move_to_neighboring_group" }, 68 | 69 | { "keys": ["super+ctrl+alt+down"], "command": "git_gutter_next_change" }, 70 | { "keys": ["super+shift+ctrl+alt+down"], "command": "git_gutter_prev_change" }, 71 | 72 | 73 | { "keys": ["alt+h"], "command": "move", "args": {"by": "characters", "forward": false} }, 74 | { "keys": ["alt+l"], "command": "move", "args": {"by": "characters", "forward": true} }, 75 | { "keys": ["alt+k"], "command": "move", "args": {"by": "lines", "forward": false}}, 76 | { "keys": ["alt+j"], "command": "move", "args": {"by": "lines", "forward": true}}, 77 | 78 | { "keys": ["ctrl+shift+a"], "command": "surround_selection" }, 79 | { "keys": ["ctrl+shift+d"], "command": "surround_delete" }, 80 | { "keys": ["ctrl+shift+r"], "command": "surround_change" } 81 | ] --------------------------------------------------------------------------------