Skip to content

Instantly share code, notes, and snippets.

@adamrosloniec
Created November 13, 2016 14:21
Show Gist options
  • Save adamrosloniec/ca1d65bedd639d8190ef43b569ddaccf to your computer and use it in GitHub Desktop.
Save adamrosloniec/ca1d65bedd639d8190ef43b569ddaccf to your computer and use it in GitHub Desktop.
sublime text - keyboard shortcut - key binding (hide/show sidebar, half window size, etc)
[
{ "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, // replace window shortcut
{ "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": "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": ["ctrl+3"], "command": "set_layout", "args": { "cols": [0.0, 0.33, 0.66, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] }},
{ "keys": ["ctrl+4"], "command": "set_layout", "args": { "cols": [0.0, 0.25, 0.5, 0.75, 1.0],"rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] }},
{ "keys": ["ctrl+e"], "command": "toggle_side_bar" }, // sidebar-hide/show
{ "keys": ["ctrl+d"], "command": "expand_selection", "args": {"to": "line"} }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment