Created
April 18, 2013 14:10
-
-
Save charleslouis/5412985 to your computer and use it in GitHub Desktop.
Sublime-Text Keybindings
This file contains hidden or 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
| [ | |
| { "keys": ["ctrl+alt+n"], "command": "new_window" }, | |
| { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto"} }, | |
| { "keys": ["ctrl+shift+o"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} }, | |
| { "keys": ["ctrl+t"], "command": "auto_complete" }, | |
| { "keys": ["ctrl+shift+t"], "command": "console_start" }, | |
| // { "keys": ["ctrl+shift+d"], "command": "find_all_under" }, | |
| { "keys": ["ctrl+shift+c"], "command": "toggle_comment" }, | |
| { "keys": ["ctrl+alt+down"], "command": "duplicate_line" }, | |
| { "keys": ["ctrl+alt+x"], "command": "prefixr" }, | |
| { "keys": ["ctrl+u"], "command": "upper_case" }, | |
| { "keys": ["ctrl+l"], "command": "lower_case" }, | |
| // Ctrl + e => <?php echo ?> or <%= %> | |
| { "keys": ["ctrl+e"], "command": "insert_snippet", "args": {"contents": "<?php echo ${1}; ?>${2}"}, | |
| "context": [{ | |
| "operand": "source.php, text.html", | |
| "operator": "equal", | |
| "match_all": true, | |
| "key": "selector" | |
| }] | |
| }, | |
| { "keys": ["ctrl+e"], "command": "insert_snippet", "args": {"contents": "<%= ${1} %>${2}"}, | |
| "context": [{ | |
| "operand": "text.html.ruby", | |
| "operator": "equal", | |
| "match_all": true, | |
| "key": "selector" | |
| }] | |
| }, | |
| { "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
| //{ "keys": ["ctrl+d"], "command": "expand_selection", "args": {"to": "word"} }, | |
| // { "keys": ["ctrl+d"], "command": "expand_selection", "args": {"to": "scope"}, "context": | |
| // [ | |
| // { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } | |
| // ] | |
| // }, | |
| { | |
| "keys": ["ctrl+,"],"args": {}, "command": "zen_as_you_type", | |
| "context": [ | |
| { | |
| "operand": "source.css - source.css.embedded, text.xml, text.html -source -meta.tag, meta.scope.between-tag-pair.html -source", | |
| "operator": "equal", | |
| "match_all": true, | |
| "key": "selector" | |
| } | |
| ] | |
| }, | |
| /* | |
| * Zen coding | |
| * http://www.sublimetext.com/forum/viewtopic.php?f=2&t=2633 | |
| **/ | |
| { "keys" : ["ctrl+e"],"command" : "wrap_zen_as_you_type", "context": | |
| [ | |
| { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } | |
| ] | |
| }, | |
| // Alignment | |
| { "keys": ["ctrl+alt+a"], "command": "alignment" }, | |
| /** | |
| * Increment | |
| * https://github.com/rmaksim/Sublime-Text-2-Solutions/ | |
| **/ | |
| // { "keys": ["ctrl+up"], "command": "inc_dec_number", "args": { "delta": 1} }, | |
| // { "keys": ["ctrl+down"], "command": "inc_dec_number", "args": { "delta": -1} } | |
| /** | |
| * Code folding | |
| */ | |
| //{ "keys": ["ctrl+keypad_minus"], "command": "fold_by_level", "args": {"level": 2} }, | |
| //{ "keys": ["ctrl+keypad_plus"], "command": "unfold" }, | |
| { "keys": ["ctrl+]"], "command": "indent" }, | |
| { "keys": ["ctrl+shift+]"], "command": "unindent" }, | |
| { "keys": ["ctrl+["], "command": "fold" }, | |
| { "keys": ["ctrl+shift+["], "command": "unfold" }, | |
| { "keys": ["ctrl+1"], "command": "fold_by_level", "args": {"level": 1} }, | |
| { "keys": ["ctrl+2"], "command": "fold_by_level", "args": {"level": 2} }, | |
| { "keys": ["ctrl+3"], "command": "fold_by_level", "args": {"level": 3} }, | |
| { "keys": ["ctrl+4"], "command": "fold_by_level", "args": {"level": 4} }, | |
| { "keys": ["ctrl+5"], "command": "fold_by_level", "args": {"level": 5} }, | |
| { "keys": ["ctrl+6"], "command": "fold_by_level", "args": {"level": 6} }, | |
| { "keys": ["ctrl+7"], "command": "fold_by_level", "args": {"level": 7} }, | |
| { "keys": ["ctrl+8"], "command": "fold_by_level", "args": {"level": 8} }, | |
| { "keys": ["ctrl+9"], "command": "fold_by_level", "args": {"level": 9} }, | |
| { "keys": ["ctrl+0"], "command": "unfold_all" }, | |
| { "keys": ["ctrl+j"], "command": "unfold_all" }, | |
| { "keys": ["ctrl+t"], "command": "fold_tag_attributes" }, | |
| /** | |
| * Google Search | |
| **/ | |
| { "keys": ["ctrl+shift+g"], "command": "google_search" }, | |
| /** | |
| * Nettuts Fetch | |
| **/ | |
| { "keys": ["ctrl+shift+e"], "command": "fetch" }, | |
| /** | |
| * Advanced New File | |
| */ | |
| { "keys": ["ctrl+alt+n"], "command": "advanced_new_file"}, | |
| { "keys": ["shift+ctrl+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}}, | |
| /** | |
| * LAYOUT | |
| **/ | |
| { | |
| "keys": ["shift+alt+right"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.33, 1.0], | |
| "rows": [0.0, 1.0], | |
| "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
| } | |
| }, | |
| { | |
| "keys": ["shift+alt+left"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.66, 1.0], | |
| "rows": [0.0, 1.0], | |
| "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
| } | |
| }, | |
| { | |
| "keys": ["shift+alt+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]] | |
| } | |
| }, | |
| { "keys": ["alt+1"], "command": "move_to_group", "args": { "group": 0 } }, | |
| { "keys": ["alt+2"], "command": "move_to_group", "args": { "group": 1 } }, | |
| { "keys": ["alt+3"], "command": "move_to_group", "args": { "group": 2 } }, | |
| { "keys": ["alt+4"], "command": "move_to_group", "args": { "group": 3 } } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment