Архив метки: sublime

sublime text

Keys:

ctrl + ` - console
ctrl + p - list open windows
ctrl + / - comment
ctrl + g - find line

http://blog.harrix.org/?p=53
ror:
Run single ruby test: Command-Shift-R
Run all ruby tests from current file: Command-Shift-T
Run last ruby test(s): Command-Shift-E
Show test panel: Command-Shift-X (when test panel visible hit esc to hide it)
Check RB, ERB file syntax: Alt-Shift-V
Switching between code and test (create a file if not found):
Single View: Command-.
Split View: Command-Ctrl-.
Easy file creation: Command-Shift-C Keys: 'Command' (OSX) 'Ctrl' (Linux / Windows)

 User Keys:

[
   { "keys": ["ctrl+shift+c"], "command": "color_pick" } 
   { "keys": ["ctrl+k"], "command": "toggle_side_bar" }
]

User Settings:

{
 "bold_folder_labels": true,
 "caret_style": "phase",
 "enable_tab_scrolling": false,
 "fade_fold_buttons": false,
 "fallback_encoding": "Cyrillic (Windows 1251)",
 "font_size": 13,
 "highlight_line": true,
 "highlight_modified_tabs": true,
 "ignored_packages":
 [
 "Vintage"
 ],
 "line_padding_bottom": 1,
 "line_padding_top": 1,
 "tab_size": 2,
 "translate_tabs_to_spaces": true,
 "update_check": false,
 "word_wrap": true
}

User Packages:

{
 "installed_packages":
 [
 "ColorPicker",
 "Haml",
 "RubyTest",
 "Sass",
 "Vagrant"
 ],
 "repositories":
 [
 "https://github.com/weslly/ColorPicker"
 ]
}

For RoR:

{
 "ignored_directories": [ ".git", "tmp" ],
 "run_rspec_command": "vagrant ssh --command \"'cd /vagrant/sample_app && rspec spec'\"",
 "run_single_rspec_command": "vagrant ssh --command \"'cd /vagrant/sample_app/`echo sed 's/\\/spec.*$//'` && bundle exec rspec `echo {relative_path} | sed 's,^[^/]*.*/spec,spec,'` -l{line_number}'\""
}

{
 "ignored_directories": [ ".git", "tmp" ],
 "run_rspec_command": "cd C:\\Users\\konst\\.vagrant.d\boxes\\chef-VAGRANTSLASH-centos-6.5\\1.0.0\\virtualbox && vagrant ssh --command \"cd /vagrant/`echo {relative_path} | sed 's/\\/spec.*$//'` && bundle exec rspec `echo {relative_path} | sed 's,^[^/]*.*/spec,spec,'`\"",
 "run_single_rspec_command": "cd C:\\Users\\konst\\.vagrant.d\boxes\\chef-VAGRANTSLASH-centos-6.5\\1.0.0\\virtualbox && vagrant ssh --command \"cd /vagrant/`echo {relative_path} | sed 's/\\/spec.*$//'` && bundle exec rspec `echo {relative_path} | sed 's,^[^/]*.*/spec,spec,'` -l{line_number}\""
}

{
 "ignored_directories": [ ".git", "tmp" ],
 "run_rspec_command": "cd C:\\Users\\konst\\.vagrant.d\boxes\\chef-VAGRANTSLASH-centos-6.5\\1.0.0\\virtualbox && vagrant ssh --command \"cd /vagrant/sample_app && bundle exec rspec {relative_path}\"",
 "run_single_rspec_command": "cd C:\\Users\\konst\\.vagrant.d\boxes\\chef-VAGRANTSLASH-centos-6.5\\1.0.0\\virtualbox && vagrant ssh --command \"cd /vagrant/sample_app && bundle exec rspec {relative_path} -l{line_number}\""
}


{
 "ignored_directories": [ ".git", "tmp" ],
 "run_rspec_command": "cd ~/.vagrant.d/boxes/chef-VAGRANTSLASH-centos-6.5/1.0.0/virtualbox && vagrant ssh --command \"cd /vagrant/sample_app && bundle exec rspec {relative_path}\"",
 "run_single_rspec_command": "cd ~/.vagrant.d/boxes/chef-VAGRANTSLASH-centos-6.5/1.0.0/virtualbox && vagrant ssh --command \"cd /vagrant/sample_app && bundle exec rspec {relative_path} -l{line_number}\""
}
http://railstutorial.ru/chapters/4_0/static-pages#sec-tests_inside_sublime_text

https://github.com/maltize/sublime-text-2-ruby-tests


https://github.com/mhartl/rails_tutorial_sublime_text#