Created
February 5, 2015 23:00
-
-
Save pietvanzoen/40443d637e40dc9cde33 to your computer and use it in GitHub Desktop.
Piet's sublime keybindings.
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
[ | |
// Simplify command pallet | |
{ | |
"keys": ["super+p"], "command": "show_overlay", | |
"args": {"overlay": "command_palette"} , | |
"context": [ { "key": "overlay_visible", "operand": false } | |
}, | |
// Join lines | |
{ "keys": ["super+j"], "command": "join_lines" }, | |
// Emmet wrap selection | |
{ | |
"keys": ["super+h"], | |
"command": "wrap_as_you_type", | |
"context": [ | |
{ | |
"operand": false, | |
"operator": "equal", | |
"match_all": true, | |
"key": "setting.is_widget" | |
}, | |
{ | |
"match_all": true, | |
"key": "emmet_action_enabled.wrap_as_you_type" | |
} | |
] | |
}, | |
// New file | |
{ | |
"keys": ["shift+super+n"], "command": "advanced_new_file", | |
"context": [ | |
{ "key": "setting.command_mode", "operand": false }, | |
{ "key": "overlay_visible", "operand": false } | |
] | |
}, | |
// Fix indentation | |
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": { "single_line": false } }, | |
// quick <br> | |
{ | |
"keys": ["ctrl+enter"], | |
"command": "insert_snippet", | |
"args": {"name": "Packages/User/break.sublime-snippet"}, | |
"context": [{ | |
"operand": "text.html, text.xml", | |
"operator": "equal", | |
"match_all": true, | |
"key": "selector" | |
}] | |
}, | |
// hit enter in find view to jump to that file/line | |
{ | |
"keys": ["enter"], | |
"command": "find_in_files_goto", | |
"context": [{ | |
"key": "selector", | |
"operator": "equal", | |
"operand": "text.find-in-files" | |
}] | |
}, | |
// cycle through tabs | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
// jump 5 lines command | |
{ "keys": ["alt+shift+up"], "command": "line_jumper", "args": { "number_of_lines": 5, "cmd": "up_select" } }, | |
{ "keys": ["alt+shift+down"], "command": "line_jumper", "args": { "number_of_lines": 5, "cmd": "down_select" } }, | |
{ "keys": ["alt+up"], "command": "line_jumper", "args": { "number_of_lines": 5, "cmd": "up" } }, | |
{ "keys": ["alt+down"], "command": "line_jumper", "args": { "number_of_lines": 5, "cmd": "down" } }, | |
{ "keys": ["ctrl+up"], "command": "line_jumper", "args": { "number_of_lines": 5, "cmd": "up" } }, | |
{ "keys": ["ctrl+down"], "command": "line_jumper", "args": { "number_of_lines": 5, "cmd": "down" } }, | |
// move by paragraph | |
{"keys": ["alt+up"], "command": "move_by_paragraph", "args": {"forward": false}}, | |
{"keys": ["alt+down"], "command": "move_by_paragraph", "args": {"forward": true}}, | |
// jump to letter in line | |
{ "keys": ["ctrl+e"], "command": "jump_to_interactive" }, | |
{ "keys": ["ctrl+shift+e"], "command": "jump_to_interactive", "args": { "extend": true } }, | |
// goto function definition | |
{ "keys": ["super+alt+down"], "command": "goto_definition" }, | |
// close all tabs | |
{ "keys": ["super+alt+w"], "command": "close_all" } | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment