Skip to content

Instantly share code, notes, and snippets.

@duggum
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duggum/e314e6f286901d5b0fe6 to your computer and use it in GitHub Desktop.
Save duggum/e314e6f286901d5b0fe6 to your computer and use it in GitHub Desktop.
Everything you need to set keybindings for individual Package Control commands.
// Package Control Command Palette Bindings
// Credit to BoundInCode for describing how to identify the individual commands here:
// http://stackoverflow.com/questions/11834652/bind-shortcut-to-command-palette-command
// Listed in the order they appear in the Package Control window
// Just replace "YOUR_KEY(S)_HERE" with whatever keys you want
// to bind to each command, and uncomment the line.
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "add_channel" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "add_repository" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "disable_package" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "discover_packages" }, // <-- launches PC website
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "enable_package" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "install_package" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "list_packages" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "remove_channel" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "remove_package" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "remove_repository" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "satisy_dependencies" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "upgrade_package" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "advanced_install_package" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "create_package" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "list_unmanaged_packages" },
// { "keys": ["YOUR_KEY(S)_HERE"], "command": "upgrade_all_packages" },
// This Displays the Package Control window from the Command Pallette
// so you don't have to "shift+cmd+p" then type to get to PC window
// {
// "keys": ["YOUR_KEY(S)_HERE"],
// "command": "show_overlay {\"overlay\": \"command_palette\", \"text\": \"Package Control: \"}"
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment