Skip to content

Instantly share code, notes, and snippets.

@devonzuegel
Last active June 12, 2017 00:46
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 devonzuegel/c62e628d04c88678ba6d6d4ec395d91b to your computer and use it in GitHub Desktop.
Save devonzuegel/c62e628d04c88678ba6d6d4ec395d91b to your computer and use it in GitHub Desktop.
// NOTE: `super` corresponds to `command`
[
// Utils.
{ "keys": ["super+shift+i"], "command": "reindent"},
{ "keys": ["alt+up"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["alt+down"], "command": "move_to", "args": {"to": "eol", "extend": false} },
// Open current file in Marked
{ "keys": ["super+shift+m"], "command": "marked" },
// Copy path of current file
{ "keys": ["ctrl+alt+c"], "command": "copy_path" },
// Reveal current file in side bar
{ "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"},
// Reveal current file in Finder
{
"keys": ["ctrl+shift+o"],
"command": "open_dir",
"args": { "dir": "$file_path", "file": "$file_name" }
},
// Go to function or class definition, including in separate file
{ "keys": ["super+b"], "command": "goto_definition" },
// Typescript
{ "keys": ["ctrl+d"], "command": "typescript_go_to_definition" },
{ "keys": ["ctrl+r"], "command": "typescript_rename" },
// Origami panes
{ "keys": ["super+ctrl+n"], "command": "create_pane", "args": {"direction": "down"} },
{ "keys": ["super+ctrl+shift+n"], "command": "create_pane", "args": {"direction": "right"} },
{ "keys": ["super+ctrl+backspace"], "command": "destroy_pane", "args": {"direction": "self"} },
// // Runs tom_doc for current ruby function
// { "keys": ["ctrl+d"], "command": "tom_doc" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment