hughsk / atom-node-resolver

Atom plugin to jump to a module's file from its require statement
Other
5 stars 7 forks source link

node-resolver stable

Atom plugin to jump to a module's file from its require statement.

node-resolver

Usage

  1. Move your cursor to a require statement.
  2. Open the command palette and run the "Node Resolver: Open Selected Dependencies" command.
  3. The selected file will open.

Note that you can also select a range of text and run the command to open up all of the files required within that range.

If you'd like to add a shortcut for this, I'd recommend adding the following to your keymap.cson:

'.workspace':
  'ctrl-alt-o': 'node-resolver:open-selected-dependencies'

License

MIT. See LICENSE.md for details.