Skip to content

Releases: dependents/Dependents

Using the mouse to jump to a dependency

14 Jul 15:39
Compare
Choose a tag to compare

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

  1. 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.
  1. 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!

Jump to a module

10 Jul 18:21
Compare
Choose a tag to compare

New Feature

Jump to the module under your cursor

How to activate it:

  1. Add the new key binding below to Preferences -> Key Bindings - User
  2. Change the "root" within the key binding if you need to
  3. Within a JS file, place your cursor over the dependency path you want to go to
  4. Press cmd + option + right (or the key combination you defined) to jump to that file

New key binding

Add this as a new key binding in Preferences -> Key Bindings - User:

{
  "keys": ["super+alt+right"],
  "command": "dependents",
  "args": {
    "root": "public/assets/js",
    "mode": "dependency"
  }
}
  • This key binding should not replace the key binding you have for finding the dependents

Upgrade node-dependents

07 Jul 20:12
Compare
Choose a tag to compare

Changelogs and notice to upgrade dependents

27 Jun 18:46
Compare
Choose a tag to compare
v1.0.8

Changelogs and notice to upgrade node tool

Show an error message is node-dependents is not installed

20 Jun 19:18
Compare
Choose a tag to compare
v1.0.7

Show a warning if node-dependents is not installed

Readme fix

20 Jun 14:11
Compare
Choose a tag to compare
v1.0.6

Typo

Fix node dependency name

20 Jun 13:58
Compare
Choose a tag to compare

The prerequisite node tool should be installed via npm install dependents.

It was previously, incorrectly stated as npm install node-dependents, which does not exist on npm. Thanks to @amatiasq for the heads up.

User Experience Tweak

19 Jun 23:24
Compare
Choose a tag to compare

If there's only one dependent for the current file, jump to that file directly – don't waste time showing the quick panel.

If there are multiple dependents, then show the quick panel.

Minor tweaks

19 Jun 23:13
Compare
Choose a tag to compare
  • Code cleanup
  • Error handling for issuing dependents command on files not within the root
  • Removing the root from the filename of the dependents shown in the quick panel

Installation instructions

17 Jun 14:54
Compare
Choose a tag to compare
v1.0.2

Installation instructions