Skip to content

Instantly share code, notes, and snippets.

@MaxPleaner
Last active October 10, 2016 18:39
Show Gist options
  • Save MaxPleaner/dcefffcdab98bf3f40ca to your computer and use it in GitHub Desktop.
Save MaxPleaner/dcefffcdab98bf3f40ca to your computer and use it in GitHub Desktop.
sublime text keybindings for keyboards with missing or badly placed 'home', 'end', 'pageup', and 'pagedown' keys.
[
// show folder in sidebar
{ "keys": ["ctrl+alt+o"], "command": "prompt_add_folder" },
// add folder to project
{ "keys": ["ctrl+alt+o"], "command": "prompt_add_folder" },
// remove folder from project
{ "keys": ["ctrl+alt+r"], "command": "close_folder_list" },
// copy path of the current file
{ "keys": ["ctrl+alt+p"], "command": "copy_path" },
// Autosave Trigger
{ "keys": ["ctrl+alt+a"], "command": "auto_save" },
// Beginning and end of line
{ "keys": ["alt+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["alt+right"], "command": "move_to", "args": {"to": "eol", "extend": false} },
// Beginning and end of line (with highlighting)
{ "keys": ["alt+shift+left"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["alt+shift+right"], "command": "move_to", "args": {"to": "eol", "extend": true} },
// Page Down and Page Up
{ "keys": ["alt+up"], "command": "move", "args": {"by": "pages", "forward": false} },
{ "keys": ["alt+down"], "command": "move", "args": {"by": "pages", "forward": true} },
{ "keys": ["shift+alt+up"], "command": "move", "args": {"by": "pages", "forward": false, "extend": true} },
{ "keys": ["shift+alt+down"], "command": "move", "args": {"by": "pages", "forward": true, "extend": true} },
// Beginning and end of file
{ "keys": ["ctrl+up"], "command": "move_to", "args": {"to": "bof", "extend": false} },
{ "keys": ["ctrl+down"], "command": "move_to", "args": {"to": "eof", "extend": false} },
// The following are commented out because they conflict with the default way to move lines up / down
// { "keys": ["ctrl+shift+up"], "command": "move_to", "args": {"to": "bof", "extend": true} },
// { "keys": ["ctrl+shift+down"], "command": "move_to", "args": {"to": "eof", "extend": true} },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment