Skip to content

Instantly share code, notes, and snippets.

@techleed
Created October 16, 2012 18:50
Show Gist options
  • Save techleed/3901196 to your computer and use it in GitHub Desktop.
Save techleed/3901196 to your computer and use it in GitHub Desktop.
Sublime Text 2: User Key Bindings
[
{ "keys": [",","x"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": [",","x"], "command": "exit_visual_mode",
"context":
[
{ "key": "setting.command_mode"},
{ "key": "num_selections", "operand": 1},
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": false }
]
},
{ "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false},
"context":
[
{ "key": "overlay_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true},
"context":
[
{ "key": "overlay_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false},
"context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true},
"context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
]
}
]
@techleed
Copy link
Author

Vintange remapping of the esc key and previous/next navigation on overlay screens (i.e. the quick panel).

@techleed
Copy link
Author

Added previous/next navigation fo autocomplete screens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment