Skip to content

Instantly share code, notes, and snippets.

@sasha7
Forked from kendellfab/goto-sublime
Last active February 15, 2017 14:52
Show Gist options
  • Save sasha7/b4b7dda69512aa166bccd9b84b347fc7 to your computer and use it in GitHub Desktop.
Save sasha7/b4b7dda69512aa166bccd9b84b347fc7 to your computer and use it in GitHub Desktop.
Add mouse click `goto definition` in sublime text 3.
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User
[
{
"button": "button1",
"count": 1,
"modifiers": ["super"],
"press_command": "drag_select",
"command": "goto_definition"
},
// TypeScript
{
"button": "button1",
"count": 1,
"modifiers": ["super"],
"press_command": "drag_select",
"command": "typescript_go_to_definition",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment