-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Details for clicking to jump to a dependency. Fixes #11
- Loading branch information
Joel Kemp
committed
Jul 14, 2014
1 parent
acbc7bf
commit 9795e61
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Using the mouse to jump to a dependency | ||
--- | ||
|
||
1. Create a new (or modify existing if you have one) .sublime-mousemap file: | ||
|
||
Windows - create Default (Windows).sublime-mousemap in %appdata%\Sublime Text 3\Packages\User | ||
|
||
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 | ||
|
||
2. Add the following binding | ||
|
||
[ | ||
{ | ||
"button": "button1", | ||
"count": 1, | ||
"modifiers": ["super", "alt"], | ||
"press_command": "drag_select", | ||
"command": "dependents", | ||
"args": { | ||
"root": "public/assets/js", | ||
"mode": "dependency" | ||
} | ||
} | ||
] | ||
|
||
* Note: You do not need the opening/closing square brackets [] if you are modifying an existing .sublime-mousemap file. | ||
|
||
3. Modify the root according to the location of JS files in your codebase | ||
|
||
Now, you can hold down CMD + Option and Click on the path of a dependency to jump to that file! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters