Skip to content

incrementallair/es-navigation

Repository files navigation

Atom ES Navigation

ES Navigation is an Atom plugin that provides keyboard shortcuts for jumping between scoped bindings in JavaScript, including those that span separate ES6 module files.

When writing modular code, it can be frustrating to navigate between separate modules - use these shortcuts to jump straight to the ES6 module definition of any imported binding.

Usage Gif

Features

By default the following keybindings are provided:

  • Ctrl-Alt-D : Jump to binding definition. Cycles between the current binding and its definition. The definition can be within the same file or imported from another module, which will be opened in a new tab. Running Ctrl-Alt-D again returns to the original position.
  • Ctrl-Alt-N : Jump to next match of binding in scope.
  • Ctrl-Alt-P : Jump to previous match of binding in scope.
  • Ctrl-Alt-A : Multi-select all matches of binding. Useful for bulk-renaming variables or ES6 export names while respecting scope, a problem that might occur with straight find-replace.

Customising the Module Resolver

By default, a heuristic module resolver is used that intelligently guesses the baseURL for packages.

See the wiki for setting up a custom resolver.

License

MIT