Skip to content

Instantly share code, notes, and snippets.

@MrHuxu
Last active April 4, 2018 02:38
Show Gist options
  • Save MrHuxu/89bd3e144745087fc03a to your computer and use it in GitHub Desktop.
Save MrHuxu/89bd3e144745087fc03a to your computer and use it in GitHub Desktop.
[sublime text] #configuration
[
{ "keys": ["ctrl+shift+v"], "command": "paste" },
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+t"], "command": "rebuild_tags"},
{ "keys": ["ctrl+i"], "command": "hide_overlay"},
//让sidebar和group的操作更符合vim的快捷键,这算是下策了
{ "keys": ["ctrl+h"], "command": "focus_side_bar"},
{ "keys": ["ctrl+l"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["ctrl+l", "ctrl+l"], "command": "focus_group", "args": { "group": 1 } },
//Simple Rails Navigator的快捷键
{ "keys": [" ", "m"], "command": "list_rails_models", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "c"], "command": "list_rails_controllers", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "v"], "command": "list_rails_views", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "h"], "command": "list_rails_helpers", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "x"], "command": "list_rails_fixtures", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "t"], "command": "list_rails_tests", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "i"], "command": "list_rails_javascripts", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "y"], "command": "list_rails_stylesheets", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["ctrl+,"], "command": "jump_prev"},
{ "keys": ["ctrl+."], "command": "navigate_to_definition"},
//{ "keys": ["ctrl+h"], "command": "move", "args": {"by": "characters", "forward": false} },
//{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "lines", "forward": true} },
// these two allows me to move up and down in overlay
//{ "keys": ["super+j"], "command": "move", "args": {"by": "lines", "forward": true}, "context":
//[{ "key": "overlay_visible", "operator": "equal", "operand": true} ] },
//{ "keys": ["super+k"], "command": "move", "args": {"by": "lines", "forward": false}, "context":
//[{ "key": "overlay_visible", "operator": "equal", "operand": true} ] },
{ "keys": ["h"], "command": "move", "args": {"by": "characters", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ] },
{ "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ] },
{ "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ] },
{ "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ] },
{ "keys": ["ctrl+n"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+o"], "command": "next_result"},
{ "keys": ["ctrl+c"], "command": "press_key", "args": {"key": "<esc>"} }
]
{
"always_show_minimap_viewport": true,
"binary_file_patterns":
[
".js",
".js.erb",
".css",
".coffee",
"tags",
".tags",
".tags_sorted_by_file",
"tags_sorted_by_file",
"*.log",
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
"*.ico",
"*.eot",
"*.pdf",
"*.swf",
"*.jar",
"*.zip"
],
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"draw_centered": false,
"draw_white_space": "all",
"fade_fold_buttons": false,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS"
],
"font_face": "Source Code Pro for Powerline",
"font_options":
[
"gray_antialias"
],
"font_size": 17,
"highlight_line": true,
"ignored_packages":
[
"RuboCop"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"line_numbers": true,
"line_padding_bottom": 3,
"line_padding_top": 3,
"overlay_scroll_bars": "enabled",
"save_on_focus_lost": true,
"show_full_path": true,
"tab_completion": false,
"tab_size": 2,
"theme": "Material-Theme.sublime-theme",
"translate_tabs_to_spaces": true,
"vintage_start_in_command_mode": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment