Skip to content

Instantly share code, notes, and snippets.

@bazuzu931
Last active January 18, 2024 14:02
Show Gist options
  • Select an option

  • Save bazuzu931/52bd54a7a27e00f2423220039e26f536 to your computer and use it in GitHub Desktop.

Select an option

Save bazuzu931/52bd54a7a27e00f2423220039e26f536 to your computer and use it in GitHub Desktop.
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"default_root": "current",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.psd",
"*.sublime-workspace"
],
"font_face": "JetBrains Mono",
"font_size": 11,
"highlight_modified_tabs": true,
"ignored_packages":
[
// "Boxy Theme",
// "Insert Filepath",
// "LSP-Dart",
// "Modific",
// "Sass",
// "Tailwind CSS Autocomplete",
"Vintage",
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"line_padding_bottom": 4,
"line_padding_top": 4,
"save_on_focus_lost": true,
"theme": "Material-Theme.sublime-theme",
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": "all",
"update_check": false,
"word_separators": "'“./ ()”\"’:,.;<>~!@#$%^&*|+=[]]{}`~?",
"index_files": true,
"smart_indent": false,
}
[
{"keys": ["ctrl+shift+l"], "command": "reindent", "args": {"single_line": false}},
// close other tabs
{ "keys": ["alt+c"],
"command": "close_others" },
//close tab
{ "keys": ["alt+b"], "command": "close" },
// cloase other windows
// { "keys": ["alt+w"],
// "command": "close_other_windows" },
// jump next/prev tabs
{ "keys": ["ctrl+left"], "command": "prev_view" },
{ "keys": ["ctrl+right"], "command": "next_view" },
// undo redo
{ "keys": ["ctrl+z"], "command": "undo" },
{ "keys": ["ctrl+shift+z"], "command": "redo" },
// run Repl in current window
{ "keys": ["alt+v"], "command": "build" },
// Select WORD
{ "keys": ["ctrl+m"], "command": "expand_selection", "args": {"to": "word"} },
// run Repl in other window
{ "keys":["ctrl+shift+a"],
"command": "repl_open",
"caption": "Python 3.5.2 - Open File",
"id": "repl_python",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["/usr/bin/python3", "-i", "$file"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},
{ "keys": ["alt+space"],
"command": "run_existing_window_command",
"args": { "id": "repl_python_run",
"file": "config/Python/Main.sublime-menu" }
},
// run macro file
{ "keys": ["ctrl+y"],
"command": "run_macro_file",
"args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}
},
// duplicate line
{ "keys": ["ctrl+d"],
"command": "duplicate_line" },
//
{ "keys": ["ctrl+g"], "command": "find_under_expand" },
// Copy file url
// https://github.com/mjhea0/sublime-setup-for-python/blob/master/dotfiles/copy_path_to_clipboard.py
{ "keys": ["ctrl+shift+c"],
"command": "copy_path_to_clipboard" },
// create new snippet
// { "keys": ["ctrl+i"], "command": "new_snippet"},
{
"keys": ["f8"],
"command": "better_snippet_manager_create",
},
// Edit snippet
{
"keys": ["f7"],
"command": "better_snippet_manager_edit"
},
// Multiple carets
{ "keys": ["alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["alt+down"], "command": "select_lines", "args": {"forward": true} },
// Wrapping content with tag
// Emmet => CTRL + SHIFT + G
// Open Terminal
// Terminal Package => CTRL + SHIFT + T
{ "keys": ["ctrl+shift+d"], "command": "delete_file" },
{ "keys": ["ctrl+alt+n"], "command": "advanced_new_file_new"},
{ "keys": ["ctrl+alt+y"], "command": "advanced_new_file_new", "args": {"is_python": true}},
{ "keys": ["ctrl+j"], "command": "find_all_under" },
{
"keys": ["tab"],
"command": "insert",
"args": {"characters": "\t"},
"context": [{
"key": "setting.anf_panel"
}]
},
// JSX - to wrap tags
{
"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context": [
{
"operand": "source.js",
"operator": "equal",
"match_all": true,
"key": "selector"
},
{
"key": "selection_empty",
"operator": "equal",
"operand": true,
"match_all": true
}
]
},
//Sidebar
// { "keys": ["ctrl+shift"], "command": "toggle_side_bar" },
// HTML, XML close tag
{ "keys": ["/"], "command": "close_tag", "args": { "insert_slash": true }, "context":
[
{ "key": "selector", "operator": "equal", "operand": "(text.html, text.xml) - string - comment", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": ".*<$", "match_all": true },
{ "key": "setting.auto_close_tags" }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment