Last active
January 29, 2022 14:56
-
-
Save joshmfrankel/7c6d53ebf2650a73fb99188411ec6225 to your computer and use it in GitHub Desktop.
Sublime Text: Preferences
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################## | |
# User-defined Methods # | |
######################## | |
# Kill Process by | |
# | |
# port - All processes with port will be killed | |
# name - All processes given a name will be killed | |
function kill-process-by() | |
{ | |
case $1 in | |
port ) | |
kill -9 $(lsof -ti tcp:$2) | |
;; | |
name ) | |
kill -9 $(lsof -t -c $2) | |
;; | |
esac | |
} | |
function pr-start() | |
{ | |
club story $1 -o "Josh Frankel" -s "In Development" --git-branch-short | |
} | |
function pr-commit() | |
{ | |
git commit -m "$(club story -f $'%t\n\nStory: [Resolves #%id](%u)\n\n%d')" | |
} | |
function pr-create() | |
{ | |
gh pr create -d -f | |
} | |
function pr-ready() | |
{ | |
gh pr ready | |
club story -s "Waiting on Review" | |
gh pr edit --add-reviewer lessonly/backend-engineers | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// { "keys": ["ctrl+v"], "command": "paste_and_indent" }, | |
// { "keys": ["ctrl+shift+v"], "command": "paste" }, | |
{ "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
{ "keys": ["ctrl+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} }, | |
{ "keys": ["ctrl+d"], "command": "find_under_expand" }, | |
{ "keys": ["ctrl+shift+up"], "command": "swap_line_up" }, | |
{ "keys": ["ctrl+shift+down"], "command": "swap_line_down" }, | |
{ "keys": ["ctrl+shift+option+d"], "command": "clone_file" }, | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }, | |
{ "keys": ["ctrl+k", "ctrl+b"], "command": "toggle_side_bar" }, | |
{ "keys": ["super+b"], "command": "noop" }, | |
{ "keys": ["ctrl+shift+d"], "command": "duplicate_line" }, | |
{ "keys": ["ctrl+forward_slash"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["f3"], "command": "find_next" }, | |
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" }, | |
// YARDOC | |
{ "keys": ["alt+enter"], "command": "yardoc"}, | |
{ "keys": ["ctrl+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} }, | |
{ "keys": ["ctrl+shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"} }, | |
{ "keys": ["ctrl+shift+l"], "command": "split_selection_into_lines" }, | |
{ "keys": ["ctrl+j"], "command": "join_lines" }, | |
// Ctrl + option + left/right arrow navigation of stacks | |
// { "keys": ["ctrl+alt+right"], "command": "next_view_in_stack" }, | |
// { "keys": ["ctrl+alt+left"], "command": "prev_view_in_stack" }, | |
// TestRspec settings | |
{ | |
"keys": ["shift+alt+r"], | |
"command": "test_current_line", | |
"context": [ | |
{ | |
"key": "selector", | |
"operator": "equal", | |
"operand": "source.ruby, source.rspec" | |
} | |
] | |
}, | |
{ | |
"keys": ["shift+alt+t"], | |
"command": "test_current_file", | |
"context": [ | |
{ | |
"key": "selector", | |
"operator": "equal", | |
"operand": "source.ruby, source.rspec" | |
} | |
] | |
}, | |
{ "keys": ["shift+alt+e"], "command": "run_last_spec" }, | |
{ "keys": ["shift+alt+x"], "command": "display_output_panel" }, | |
{ | |
"keys": ["shift+alt+w"], | |
"command": "switch_between_code_and_test", | |
"context": [ | |
{ | |
"key": "selector", "operator": "equal", | |
"operand": "source.ruby, source.rspec" | |
} | |
] | |
}, | |
{ "keys": ["shift+alt+q"], "command": "create_spec_file" }, | |
// END TestRspec | |
// Mac keyboard layouts | |
{ | |
"keys": ["super+shift+1"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1]] | |
} | |
}, | |
{ | |
"keys": ["super+shift+2"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
} | |
}, | |
// side-by-side column with small row underneath | |
{ | |
"keys": ["super+shift+3"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 0.95, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [0, 1, 2, 2]] | |
} | |
}, | |
// 2 rows, 3 columns | |
{ | |
"keys": ["super+shift+5"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.33, 0.67, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], | |
[0, 1, 1, 2], [1, 1, 2, 2], [2, 1, 3, 2]] | |
} | |
}, | |
// Kinesis keyboard layouts | |
{ | |
"keys": ["alt+shift+1"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1]] | |
} | |
}, | |
{ | |
"keys": ["alt+shift+2"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
} | |
}, | |
// side-by-side column with small row underneath | |
{ | |
"keys": ["alt+shift+3"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 0.8, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [0, 1, 2, 2]] | |
} | |
}, | |
// 2 rows, 3 columns | |
{ | |
"keys": ["alt+shift+5"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.33, 0.67, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], | |
[0, 1, 1, 2], [1, 1, 2, 2], [2, 1, 3, 2]] | |
} | |
}, | |
// End layouts | |
// Emmet for React | |
{"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context": | |
[ | |
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" }, | |
{ "match_all": true, "key": "selection_empty" }, | |
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" }, | |
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" }, | |
{ "match_all": true, "key": "is_abbreviation" } | |
] | |
}, | |
// BracketHighlighter | |
{ | |
"keys": ["ctrl+m"], | |
"command": "bh_key", | |
"args": { | |
"plugin": { | |
"args": {"select": "right", "alternate": true}, | |
"command": "bh_modules.bracketselect", | |
"type": ["__all__"] | |
}, | |
"lines": true, | |
"no_outside_adj": null | |
} | |
}, | |
// Select text between brackets | |
{ | |
"no_outside_adj": null, | |
"keys": ["ctrl+shift+m"], | |
"command": "bh_key", | |
"args": | |
{ | |
"lines" : true, | |
"plugin": | |
{ | |
"type": ["__all__"], | |
"command": "bh_modules.bracketselect" | |
} | |
} | |
}, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Palenight.tmTheme", | |
"default_line_ending": "unix", | |
"draw_minimap_border": true, | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules" | |
], | |
"font_face": "Operator Mono", | |
"font_size": 13, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Naomi", | |
"TypeScript", | |
"Vintage", | |
], | |
"indent_guide_options": | |
[ | |
"draw_normal", | |
"draw_active" | |
], | |
"line_padding_bottom": 3, | |
"line_padding_top": 3, | |
"match_brackets": false, | |
"match_brackets_angle": false, | |
"match_brackets_braces": false, | |
"match_brackets_content": false, | |
"match_brackets_square": false, | |
"match_tags": false, | |
"material_theme_appbar_indigo": true, | |
/*"material_theme_bright_scrollbars": true,*/ | |
/*"material_theme_compact_panel": true,*/ | |
"material_theme_compact_sidebar": true, | |
/*"material_theme_contrast_mode": true,*/ | |
/*"material_theme_panel_separator": true,*/ | |
"material_theme_small_statusbar": true, | |
"material_theme_small_tab": true, | |
"material_theme_tabs_separator": true, | |
/*"material_theme_titlebar": true,*/ | |
"rulers": | |
[ | |
80, | |
120 | |
], | |
"scroll_past_end": true, | |
"shift_tab_unindent": true, | |
"show_definitions": false, | |
"show_errors_inline": false, | |
"show_full_path": true, | |
"tab_size": 2, | |
"theme": "Material-Theme-Palenight.sublime-theme", | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"word_wrap": true, | |
/*"material_theme_accent_acid-lime": true,*/ | |
/*"material_theme_accent_titlebar": true,*/ | |
/*"material_theme_accent_scrollbars": true,*/ | |
"material_theme_bright_scrollbars": true, | |
/*"material_theme_compact_panel": true,*/ | |
"material_theme_compact_panel": true, | |
"material_theme_contrast_mode": true, | |
"material_theme_panel_separator": true, | |
/*"material_theme_titlebar": true,*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mac stuff