Last active
September 15, 2020 18:11
-
-
Save iiviigames/53aa95eb631059927ec233a8fdaf01ab to your computer and use it in GitHub Desktop.
My Sublime Keymap Extras
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
Show hidden characters
[ | |
// SUBLIME TEXT | |
// Replacement | |
{ "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, | |
{ "keys": ["f2"], "command": "replace_next" }, | |
// Shows the console panel | |
{ "keys": ["ctrl+shift+`"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, | |
// Toggle Side Bar | |
{ "keys": ["ctrl+\\"], "command": "toggle_side_bar" }, | |
// Fold/Unfold | |
{ "keys": ["shift+super+["], "command": "fold" }, | |
{ "keys": ["shift+super+]"], "command": "unfold" }, | |
// Spell Check Toggle Alt (Using f6 for python docs) | |
{ "keys": ["alt+f6"], "command": "toggle_setting", "args": {"setting": "spell_check"} }, | |
// Changed the default for using the insert key. | |
{ "keys": ["alt+insert"], "command": "toggle_overwrite" }, | |
// Reindent after size of tabs has changed. | |
// { "keys": ["super+shift+i"], "command": "reindent", "args": {"single_line": false,}}, | |
{ "keys": ["ctrl+k", "ctrl+r"], "command": "reindent", "args": {"single_line": false} }, | |
// { "keys": ["ctrl+k", "ctrl+r"], "command": "reindent", "args": {"single_line": false} }, | |
// Swap Case | |
// Upper Case | |
{ "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" }, | |
// Lower Case | |
{ "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" }, | |
// Camel/Title Case | |
{ "keys": ["ctrl+k", "ctrl+c"], "command": "title_case" }, | |
// SPECIAL TERMINAL COMMANDS (TERMINUS) | |
// RUN LOCAL DOCUMENTATION | |
// WINDOWS BATCH FILES AND COMMAND LINE SYNTAX | |
{ | |
"keys": ["ctrl+shift+alt+d"], | |
"command": "terminus_open", | |
"args": { | |
"shell_cmd": "sumatrapdf command_line_and_bat_reference.pdf", | |
"cwd": "E:\\Library\\Technology\\Computer Programming\\Coding Languages\\Windows" | |
} | |
}, | |
// LAYOUT CUSTOMIZATIONS | |
// 2 Half-Windows On Left, One Full Half on Right | |
{ | |
"keys": ["ctrl+alt+3"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0,0.5, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": [[0, 0, 1, 1], [0, 1, 1, 2],[1,0,2,2]] | |
} | |
}, | |
// | |
// SIDEBAR FILE EXPLORER | |
// {"keys": ["alt+shift+e"], "command": "side-bar-open-files-with-explorer" } , | |
// | |
// DEV DOCS | |
{"keys": ["super+shift+d"], "command":"dev_docs_search_from_input" }, | |
{"keys": ["ctrl+d","ctrl+d"], "command":"dev_docs_search_selection" }, | |
// | |
// AHK DOCS | |
{"keys": ["alt+shift+a"], "command":"goto_documentation" }, | |
// | |
// SUBLIME LINTER | |
{ "keys": ["ctrl+k", "r"], "command": "sublime_linter_line_report" }, | |
// | |
// CUSTOM COMMENTS | |
// LUA DOCSTRINGS! | |
{ | |
"keys": ["ctrl+alt+shift+/"], | |
"command": "move_to", | |
"args": {"to":"bol","extend":false}, | |
"command":"insert", | |
"args": { | |
"characters": "---\t", | |
}, | |
}, | |
// PICO-8 | |
{ "keys": ["f8"], "command": "pico_run_cart" }, | |
// { "keys": ["ctrl+u"], "command": "pico_run_cart" }, | |
{ | |
"keys": ["alt+shift+p"], | |
"command": "open_url", | |
"args": { "url": "http://iiviigames.github.io/pico8-api" } | |
}, | |
// OPEN TO WEBPAGE | |
{ "keys": ["alt+shift+y"], "command": "open_url", "args": { "url": "https://docs2.yoyogames.com" } }, | |
{ "keys": ["alt+shift+u"], "command": "open_url", "args": { "url": "https://youtube.com" } }, | |
{ "keys": ["ctrl+super+m"],"command": "open_url", "args": { "url": "https://www.amulet.xyz/doc/" } }, | |
// AMULET | |
{ "keys": ["f10"], "command": "build", "args": {"name": "Amulet"}}, | |
// | |
// LOVE2D | |
{ "keys": ["f9"], "command": "build", "args": {"name": "Build With Love2D"}}, | |
{ "keys": ["alt+shift+l"], "command": "open_url", "args": { "url": "https://love2d.org/wiki" } }, | |
// CASTLE | |
{ "keys": ["alt+shift+c"], "command": "open_url", "args": { "url": "https://castle.games/documentation" } }, | |
{ "keys": ["alt+shift+s"], "command": "open_url", "args": { "url": "https://github.com/TRASEVOL-DOG/sugarcoat/blob/master/doc/sugar.md#sugar" } }, | |
// PROCESSING 3 | |
{ "keys": ["f6"], "command": "build", "args": { "name": "Run sketch (Processing 3 only)"} }, | |
// | |
// CHEATSHEET/FIND KEYMAPS | |
{ "keys": ["alt+shift+i"], "command": "cheat_sheet" }, | |
{ "keys": ["ctrl+alt+-"], "command": "cheat_sheet" }, | |
{ "keys": ["ctrl+alt+/"], "command": "find_keymap" }, | |
// NOTEDOWN | |
// { "keys": ["alt+shift+n"], "command": "notedown_open" }, | |
// | |
// JSBEUTIFY | |
{ "keys": ["alt+shift+j"], "command": "jsbeautify" }, | |
// | |
// MARKDOWN HTML PREVIEW | |
{ "keys": ["alt+shift+m"], "command": "markdown_html_preview"}, | |
// | |
// HTML PREVIEW | |
{ "keys": ["ctrl+h","ctrl+h" ], "command": "view_in_browser", "args": { "browser": "devfox" } }, // Opens in new window | |
// { "keys": [ "f5" ], "command": "view_in_browser", "args": { "browser": "devfoxtab" } }, // Opens in new tab | |
// SUBLIME PYTHON IDE | |
{ "keys": ["ctrl+f6"], "command": "python_get_documentation"}, | |
// | |
// SURROUND WITH | |
{ "keys": ["ctrl+alt+w"], "command": "surround_with", "args": { "action": "{" } }, // while | |
{ "keys": ["ctrl+alt+f"], "command": "surround_with", "args": { "action": "[" } }, // for | |
{ "keys": ["ctrl+alt+t"], "command": "surround_with", "args": { "action": "(" } }, // try | |
{ "keys": ["ctrl+alt+u"], "command": "surround_with", "args": { "action": "if"} }, // dowhile | |
{ "keys": ["ctrl+alt+i"], "command": "surround_with", "args": { "action": "ifelse"}}, // if | |
{ "keys": ["ctrl+alt+d"], "command": "surround_with", "args": { "action": "function"}}, // ifelse | |
// SNIPPET CREATOR (Requires QuickSearch, FileLister, and SnippetManager) | |
// { "keys": ["alt+shift+z"], "command": "create_snippet_from_selection"}, | |
// { "keys": ["alt+shift+x"], "command": "show_snippet_opener"}, | |
// REGEX EXPLAIN TIP | |
{ "keys": ["alt+super+z"], "command": "regexexplaintip", }, | |
// TERMINAL | |
{ "keys": ["alt+t", "alt+t"], "command": "open_terminal" }, | |
{ "keys": ["alt+t", "alt+f"], "command": "open_terminal_project_folder" }, | |
// NIM | |
{"keys": ["alt+f12"], "command": "gotodef", "context": | |
[ | |
{ "key": "selector", "operator": "equal", "operand": "source.nim" }, | |
{ "key": "selector", "operator": "equal", "operand": "source.nims" } | |
] | |
}, | |
// MACRO | |
{ "keys": ["alt+/"], "command": "run_macro_file", "args": {"file": "Packages/User/LuaDocComment.sublime-macro"}}, | |
{ "keys": ["alt+super+l"], "command": "run_macro_file", "args": { | |
"file": "Packages/User/LoveDoc.sublime-macro", | |
"file": "Packages/User/DownArrow.sublime-macro", | |
// "file": "Packages/User/EnterPress.sublime-macro" | |
}}, | |
// OPEN URL (LOVE2D ONLY!!!) | |
{ "keys": ["alt+shift+u"], "command": "open_url" }, | |
] |
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
[ | |
// SUBLIME TEXT | |
// Toggle Side Bar | |
{ "keys": ["ctrl+\\"], "command": "toggle_side_bar" }, | |
// Fold/Unfold | |
{ "keys": ["shift+super+["], "command": "fold" }, | |
{ "keys": ["shift+super+]"], "command": "unfold" }, | |
// Spell Check Toggle Alt (Using f6 for python docs) | |
{ "keys": ["alt+f6"], "command": "toggle_setting", "args": {"setting": "spell_check"} }, | |
// Changed the default for using the insert key. | |
{ "keys": ["alt+insert"], "command": "toggle_overwrite" }, | |
// Swap lower to upper case | |
{ "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" }, | |
{ "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" }, | |
// LAYOUT CUSTOMIZATIONS | |
// 2 Half-Windows On Left, One Full Half on Right | |
{ | |
"keys": ["ctrl+alt+3"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0,0.5, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": [[0, 0, 1, 1], [0, 1, 1, 2],[1,0,2,2]] | |
} | |
}, | |
// AHK DOCS | |
{"keys": ["alt+shift+a"], "command":"goto_documentation" }, | |
// SUBLIME LINTER | |
{ "keys": ["ctrl+k", "r"], "command": "sublime_linter_line_report" }, | |
// PICO-8 | |
{ "keys": ["f8"], "command": "pico_run_cart" }, | |
{ "keys": ["ctrl+u"], "command": "pico_run_cart" }, | |
{ | |
"keys": ["alt+shift+p"], | |
"command": "open_url", | |
"args": { "url": "http://neko250.github.io/pico8-api" } | |
}, | |
{ "keys": ["alt+shift+y"], "command": "open_url", "args": { "url": "https://docs2.yoyogames.com" } }, | |
{ "keys": ["alt+shift+u"], "command": "open_url", "args": { "url": "https://youtube.com" } }, | |
// AMULET | |
{ "keys": ["f11"], "command": "build", "args": {"name": "Amulet"}}, | |
// LOVE2D | |
{ "keys": ["f9"], "command": "build", "args": {"name": "Build With Love2D"}}, | |
{ "keys": ["alt+shift+l"], "command": "open_url", "args": { "url": "https://love2d.org/wiki" } }, | |
// CASTLE | |
{ "keys": ["alt+shift+c"], "command": "open_url", "args": { "url": "https://castle.games/documentation" } }, | |
{ "keys": ["alt+shift+s"], "command": "open_url", "args": { "url": "https://github.com/TRASEVOL-DOG/sugarcoat/blob/master/doc/sugar.md#sugar" } }, | |
// PROCESSING 3 | |
{ "keys": ["f6"], "command": "build", "args": { "name": "Run sketch (Processing 3 only)"} }, | |
// CHEATSHEET/FIND KEYMAPS | |
{ "keys": ["alt+shift+i"], "command": "cheat_sheet" }, | |
// NOTEDOWN | |
{ "keys": ["alt+shift+n"], "command": "notedown_open" }, | |
// JSBEUTIFY | |
{ "keys": ["alt+shift+j"], "command": "jsbeautify" }, | |
// MARKDOWN HTML PREVIEW | |
{ "keys": ["alt+shift+m"], "command": "markdown_html_preview"}, | |
// HTML PREVIEW | |
{ "keys": ["shift+super+d" ], "command": "view_in_browser", "args": { "browser": "devfox" } }, // Opens in new window | |
{ "keys": [ "f5" ], "command": "view_in_browser", "args": { "browser": "devfoxtab" } }, // Opens in new tab | |
// SUBLIME PYTHON IDE | |
{ "keys": ["ctrl+f6"], "command": "python_get_documentation"}, | |
// {"keys": ["alt+shift+e"], "command": "side-bar-open-files-with-explorer" } , | |
// SNIPPET CREATOR (Requires QuickSearch, FileLister, and SnippetManager) | |
// { "keys": ["alt+shift+z"], "command": "create_snippet_from_selection"}, | |
// { "keys": ["alt+shift+x"], "command": "show_snippet_opener"}, | |
] | |
[ | |
// ++++++++++++++++++ SUBLIME ++++++++++++++++++ | |
//::: Toggle Views | |
//>>> Minimap | |
// { "keys": ["ctrl+t"], "command": "toggle_minimap" }, | |
//>>> Sidebar | |
{ "keys": ["ctrl+\\"], "command": "toggle_side_bar" }, | |
//::: Selection To URL | |
//>>> Expand Selection to Brackets. | |
{ "keys": ["ctrl+alt+u"], "command": "expand_selection", "args": {"to": "brackets"} }, | |
//::: Title Case | |
//>>> Highlight Desired Text, (space deleminited) each new word int he higlight will get it's first letter capitalized. | |
{ "keys": ["ctrl+alt+t"], "command": "title_case" }, | |
//::: Folders to Project | |
//>>> Open a new sublime window, add a folder to it as a starting project. | |
{ "keys": ["ctrl+alt+shift+n"], "command": "prompt_folder_add","args" : {"new_window": "y"}}, | |
//>>> Add folder to current project | |
{ "keys": ["ctrl+shift+insert"], "command": "prompt_folder_add"}, | |
//>>> Remove Folder from current project. | |
{ "keys": ["ctrl+alt+shift+u"], "command": "prompt_folder_remove"}, | |
//::: Close File | |
{ "keys": ["ctrl+f4"], "command": "close_file" }, | |
// ++++++++++++++++++ KEYMAP ++++++++++++++++++ | |
//>>> The cheatsheets for keymaps | |
{ "keys": ["shift+ctrl+i"], "command": "cheat_sheet" }, | |
// ++++++++++++++++++ PICO 8 ++++++++++++++++++ | |
// Pico 8 View API, WIKI, andBBS | |
{ "keys": ["shift+alt+-"], "command": "open_url", "args": {"url": "http://neko250.github.io/pico8-api"} }, | |
{ "keys": ["shift+alt+i"], "command": "open_url", "args": {"url": "http://pico-8.wikia.com/wiki/Pico-8_Wikia"} }, | |
{ "keys": ["shift+alt+c"], "command": "open_url", "args": {"url": "http://www.lexaloffle.com/bbs/?cat=7"} }, | |
{ "keys": ["shift+alt+o"], "command": "open_url", "args": {"url": "http://pico-ate.com"} }, | |
{ "keys": ["ctrl+shift+alt+8"], "command": "open_url", "args": {"url": "http://www.brandimorton.com/tiny/demo-man/"} }, | |
// Pico 8 Run Cart | |
{ "keys": ["f8"], "command": "pico_run_cart" }, | |
// Pico 8 Run Cart | |
{ | |
"keys": ["ctrl+f8"], | |
"command": "open_file", | |
"args": { "file": "${packages}/User/PICO-8.sublime-settings" } | |
}, | |
// ++++++++++++++++++ GML ++++++++++++++++++ | |
//>>> Open Documentation For GMS1 | |
{ "keys": ["alt+shift+f1"], "command": "open_url", "args": {"url": "https://docs.yoyogames.com/"} }, | |
//>>> Open Documentation For GMS2 | |
{ "keys": ["alt+shift+f2"], "command": "open_url", "args": {"url": "https://docs2.yoyogames.com"} }, | |
// ++++++++++++++++++ AMULET ++++++++++++++++++ | |
//>>> Open Documentation For Amulet | |
{ "keys": ["alt+shift+f3"], "command": "open_url", "args": {"url": "https://www.amulet.xyz/doc/"} }, | |
{ "keys": ["ctrl+shift+alt+b"], "command": "build", "args": {"select": true} }, | |
{ "keys":["ctrl+alt+;"], "command": "build", "args":"AMULET"}, | |
// ++++++++++++++++++ MARKDOWN ++++++++++++++++++ | |
//>>> MARKDOWN PREVIEW | |
{ "keys": ["ctrl+alt+shift+m"], "command": "markdown_html_preview" }, | |
// ++++++++++++++++++ CSS ++++++++++++++++++ | |
//>>> CSS LINTER | |
{ "keys": ["ctrl+alt+l"], "__doc__": "Run CSSLint", "command": "csslint"} , | |
// ++++++++++++++++++ PYTHON ++++++++++++++++++ | |
//::: SUBLIME PYTHON IDE | |
///>>> Get Python Documentation on Highlighted Text | |
{ "keys": ["ctrl+f7"], "command": "python_get_documentation" }, | |
// ++++++++++++++++++ GITHUB ++++++++++++++++++ | |
//>>> INIT | |
{ "keys": ["ctrl+5"], "command": "git_init" }, | |
//>>> STATUS | |
{ "keys": ["ctrl+6"], "command": "git_status" }, | |
//>>> GUI | |
{ "keys": ["alt+g"], "command": "git_gui" }, | |
//>>> NEW BRANCH | |
{ "keys": ["ctrl+alt+b"], "command": "git_new_branch" }, | |
//>>> CHANGE BRANCH | |
{ "keys": ["ctrl+alt+shift+pageup"], "command": "git_new_branch" }, | |
//>>> ADD SELECT FILE | |
{ "keys": ["alt+insert"], "command": "git_add_choice" }, | |
//>>> ADD CURRENT FILE | |
{ "keys": ["alt+a"], "command": "git_raw", "args": { "command": "git add", "append_current_file": true }}, | |
//>>> COMMIT CURRENT FILE | |
{ "keys": ["ctrl+alt+shift+="],"command": "git_quick_commit" }, | |
//>>> SHOW PREVIOUS VERSION OF FILE | |
{ "keys": ["alt+shift+f"], "command": "git_show" }, | |
// ++++++++++++++++++ URL OPEN ++++++++++++++++++++++ | |
//>>> OPEN WIKIPEDIA SEARCH | |
{ "keys": ["shift+alt+w"], "command": "open_url", "args": {"url": "https://en.wikipedia.org/wiki/Special:Search?search="} }, | |
//>>> OPEN AHK SEARCH | |
{ "keys": ["shift+alt+h"], "command": "open_url", "args": {"url": "https://www.autohotkey.com/docs/AutoHotkey.htm"} }, | |
// ++++++++++++++++++ NODE JS STUFF ++++++++++++++++++++++ | |
{"keys":["ctrl+shift+alt+i"], "command": "simple_require"}, | |
{"keys":["ctrl+shift+alt+d"], "command": "node_drun"}, | |
{"keys":["ctrl+shift+alt+r"], "command": "node_run"}, | |
{"keys":["ctrl+shift+y"], "command": "node_run_arguments"}, | |
// ++++++++++++++++++ LOVE2D ++++++++++++++++++++++ | |
{"keys":["ctrl+shift+l"], "command":"LuaLove", "args":"Love2D"}, | |
// PicoRunCart | |
// { "keys": ["f8"], "command": "pico_run_cart" }, | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment