Skip to content

Instantly share code, notes, and snippets.

@garmjs
Last active January 1, 2016 19:39
Show Gist options
  • Select an option

  • Save garmjs/8191537 to your computer and use it in GitHub Desktop.

Select an option

Save garmjs/8191537 to your computer and use it in GitHub Desktop.
Remap keys on sublime text 3
[
// hide toggle_side_bar
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" },
{
// Switch on layout (Window) 1
"keys": ["ctrl+1"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
// Split: Switch on two Layouts
"keys": ["v", "S"],
"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]]
}
},
// Focus on layout 1
{ "keys": ["ctrl+h"], "command": "focus_group", "args": { "group": 0 } },
// Focus on layout 2
{ "keys": ["ctrl+l"], "command": "focus_group", "args": { "group": 1 } },
// Move file on layout 1 ( for easy memorize think for " m = Move, r = left " )
{ "keys": ["m", "L"], "command": "move_to_group", "args": { "group": 0 } },
// Move file on 2 ( for easy memorize think for "m = Move, r = right" )
{ "keys": ["m", "R"], "command": "move_to_group", "args": { "group": 1 } },
// Switch on Vim Mode
{ "keys": ["j", "J"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment