Skip to content

Commit

Permalink
Add tab width keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmartineau committed Jan 18, 2013
1 parent ce93f08 commit c0aff26
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// A macro command created by Zander Martineau
{ "keys": ["super+shift+alt+s"], "command": "run_macro_file", "args": {"file": "Packages/User/Spaces to Tabs.sublime-macro"} },
{ "keys": ["super+shift+alt+a"], "command": "run_macro_file", "args": {"file": "Packages/User/Convert 2 spaces to 4 tabs.sublime-macro"} },
{ "keys": ["super+shift+alt+d"], "command": "run_macro_file", "args": {"file": "Packages/User/Convert 2 spaces to 4 tabs.sublime-macro"} },

{ "keys": ["shift+escape"], "command": "alternative_autocomplete", "context":
[
Expand All @@ -28,10 +28,10 @@
{ "keys": ["ctrl+shift+x"], "command": "insert_snippet", "args": {"contents": "${TM_COMMENT_START/s*$//}=== ${1:Banner} ===${TM_COMMENT_END/^s*(.+)/ $1/}"}},

// Can I Use
{ "keys": ["ctrl+alt+f"], "command": "use_it" },
// { "keys": ["ctrl+alt+f"], "command": "use_it" },
// Highlight Changes
{ "keys": ["super+k", "super+d"], "command": "highlightchanges" },
{ "keys": ["super+k", "super+l"], "command": "gotonextdiff " },
// { "keys": ["super+k", "super+d"], "command": "highlightchanges" },
// { "keys": ["super+k", "super+l"], "command": "gotonextdiff " },
//JS Format
{ "keys": ["ctrl+shift+f"], "command": "js_format"},
//Mark and move
Expand All @@ -51,6 +51,14 @@
// Bookmarks
{ "keys": ["f1"], "command": "toggle_bookmark" },
{ "keys": ["f2"], "command": "prev_bookmark" },
{ "keys": ["f3"], "command": "next_bookmark" }
{ "keys": ["f3"], "command": "next_bookmark" },

// Tab sizes
{ "keys": ["alt+ctrl+1"], "command": "set_setting", "args": {"setting": "tab_size", "value": 1} },
{ "keys": ["alt+ctrl+2"], "command": "set_setting", "args": {"setting": "tab_size", "value": 2} },
{ "keys": ["alt+ctrl+3"], "command": "set_setting", "args": {"setting": "tab_size", "value": 3} },
{ "keys": ["alt+ctrl+4"], "command": "set_setting", "args": {"setting": "tab_size", "value": 4} }



]

0 comments on commit c0aff26

Please sign in to comment.