Skip to content

Instantly share code, notes, and snippets.

@mackermedia
Created June 13, 2014 17:47
Show Gist options
  • Save mackermedia/5bff094b8ec494d8ca16 to your computer and use it in GitHub Desktop.
Save mackermedia/5bff094b8ec494d8ca16 to your computer and use it in GitHub Desktop.
[
{ "keys": ["super+alt+["], "command": "reindent", "args": {"single_line": false} },
{ "keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false} },
{ "keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true} },
{ "keys": ["shift+alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true} },
{ "keys": ["shift+alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true } },
// Auto-pair curly braces
{ "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{ $0 }"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
]
},
{ "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{ ${0:$SELECTION} }"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
// Toggle between erb tags
{ "keys": ["super+shift+."], "command": "erb" },
// override delete line
{ "keys": ["super+shift+k"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
// do the Markdown thang
{ "keys": ["super+alt+ctrl+p"], "command": "markdown_preview", "args": {"target": "browser", "parser": "markdown"} },
// insert an HTML element
{ "keys": ["super+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } },
// AlignTab shortcut:
{ "keys": ["super+alt+]"], "command": "align_tab", "args" : { "user_input" : "=>" } }
]
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"filename_syntax_settings":
[
[
".*spec.rb",
"RSpec",
"i"
]
],
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"coverage",
"capybara"
],
"font_size": 17.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 0,
"line_padding_top": 0,
"save_on_focus_lost": true,
"scroll_past_end": true,
"show_full_path": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"wrap_width": 80
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment