Last active
August 29, 2015 14:11
-
-
Save doofmars/9479b1af4ccfe9e469c4 to your computer and use it in GitHub Desktop.
My sublime keybindings some additions to fit to my eclipse workflow
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
| [ | |
| /* General hotkeys */ | |
| { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, | |
| { "keys": ["ctrl+shift+e"], "command": "show_panel", "args": {"panel": "find_in_files"} }, | |
| { "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
| { "keys": ["alt+shift+r"], "command": "find_under_expand" }, | |
| { "keys": ["ctrl+."], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, | |
| { "keys": ["f12"], "command": "htmlprettify"}, | |
| /* Commenting */ | |
| { "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } }, | |
| { "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": true } }, | |
| { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": false } }, | |
| { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }, | |
| { "keys": ["ctrl+shift+f"], "command": "reindent" , "args": {"single_line": false}}, | |
| /* Eclipse copy and swap line */ | |
| { "keys": ["alt+up"], "command": "swap_line_up" }, | |
| { "keys": ["alt+down"], "command": "swap_line_down" }, | |
| { "keys": ["ctrl+alt+up"], "command": "duplicate_line" }, /* Use duplicate_lines with the Duplicate Lines Plugin */ | |
| { "keys": ["ctrl+alt+down"], "command": "duplicate_line" }, /* https://github.com/wjthomas9/duplicate-lines */ | |
| { "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} }, | |
| { "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} }, | |
| /* Misc Eclipse hotkeys (non colliding) */ | |
| { "keys": ["ctrl+shift+s"], "command": "save_all" }, | |
| { "keys": ["ctrl+shift+f4"], "command": "close_all" }, | |
| /* Overwrite focus_group to generate two colum layout with ctrl+2 */ | |
| /* Move current file to second layout. ctrl+1 resets to single colum layout */ | |
| /* Use Chain of Command for chained command https://github.com/jisaacks/ChainOfCommand */ | |
| { | |
| "keys": ["ctrl+1"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 1.0], | |
| "rows": [0.0, 1.0], | |
| "cells": [[0, 0, 1, 1]] | |
| } | |
| }, | |
| { | |
| "keys": ["ctrl+2"], | |
| "command": "chain", | |
| "args": { | |
| "commands": [ | |
| ["set_layout", | |
| { | |
| "cols": [0.0, 0.5, 1.0], | |
| "rows": [0.0, 1.0], | |
| "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
| }], | |
| ["focus_group", { "group": 0 }], | |
| ["move_to_group", { "group": 1 }] | |
| ] | |
| } | |
| }, | |
| { "keys": ["ctrl+alt+left"], "command": "focus_group", "args": { "group": 0 } }, | |
| { "keys": ["ctrl+alt+right"], "command": "focus_group", "args": { "group": 1 } }, | |
| /* Swapped find with replace */ | |
| { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "find", "reverse": false} }, | |
| { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment