Last active
December 20, 2015 15:18
-
-
Save telekineticyeti/6152702 to your computer and use it in GitHub Desktop.
Sublime Text 2 - Keyboard bind settings that initialize various panel layouts; from simple 2x horizontal / vertical panels, to 4/6/8x panels in grid formation.To use: select "preferences > Key bindings - User" in your ST2 menu and paste / save/
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+g"], "command": "toggle_status_bar" }, | |
| { | |
| "keys": ["ctrl+r"], | |
| "command": "toggle_setting", | |
| "args": | |
| { | |
| "setting": "line_numbers", | |
| "setting": "gutter" | |
| } | |
| }, | |
| { | |
| "caption": "Single Panel", | |
| "keys": ["alt+shift+1"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 1.0], | |
| "rows": [0.0, 1.0], | |
| "cells": [[0, 0, 1, 1]] | |
| } | |
| }, | |
| { | |
| "caption": "Dual Panel Vertical", | |
| "keys": ["alt+shift+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]] | |
| } | |
| }, | |
| { | |
| "caption": "Dual Panel Horizontal", | |
| "keys": ["alt+shift+3"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 1.0], | |
| "rows": [0.0, 0.5, 1.0], | |
| "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] | |
| } | |
| }, | |
| { | |
| "caption": "3 Panel Grid (1x2)", | |
| "keys": ["alt+shift+4"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.5, 1.0], | |
| "rows": [0.0, 0.5, 1.0], | |
| "cells": | |
| [ | |
| [0, 0, 2, 1], | |
| [0, 1, 1, 2], [1, 1, 2, 2] | |
| ] | |
| } | |
| }, | |
| { | |
| "caption": "4 Panel Grid (2x2)", | |
| "keys": ["alt+shift+5"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.65, 0.65, 1.0], | |
| "rows": [0.0, 0.64, 1.0], | |
| "cells": | |
| // [ | |
| // [0, 0, 1, 2], [1, 0, 3, 1], [1, 1, 3, 2], [0, 2, 2, 3], [2, 2, 3, 3] | |
| // ] | |
| [ | |
| [0, 0, 1, 1], [1, 0, 3, 1], [0, 1, 2, 2], [2, 1, 3, 2] | |
| ] | |
| } | |
| }, | |
| { | |
| "caption": "6 Panel Grid (3x2)", | |
| "keys": ["alt+shift+6"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.33, 0.66, 1.0], | |
| "rows": [0.0, 0.5, 1.0], | |
| "cells": | |
| [ | |
| [0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], | |
| [0, 1, 1, 2], [1, 1, 2, 2], [2, 1, 3, 2] | |
| ] | |
| } | |
| }, | |
| { | |
| "caption": "8 Panel Grid (4x2)", | |
| "keys": ["alt+shift+7"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.25, 0.50, 0.75, 1.00], | |
| "rows": [0.0, 0.5, 1.0], | |
| "cells": | |
| [ | |
| [0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1], | |
| [0, 1, 1, 2], [1, 1, 2, 2], [2, 1, 3, 2], [3, 1, 4, 2] | |
| ] | |
| } | |
| }, | |
| { | |
| "caption": "2x1", | |
| "keys": ["alt+shift+0"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.66, 1.0], | |
| "rows": [0.0, 0.5, 1.0], | |
| "cells": | |
| [ | |
| [0, 0, 1, 1], [0, 1, 1, 2], [1, 0, 2, 2] | |
| ] | |
| } | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment