Git Product home page Git Product logo

es6navigator's Introduction

es6navigator

Simple Sublime 3 plugin to quickly navigate to the es6 import path.

Pathing support:

  • Relative paths
  • node_modules
  • bower_components
  • ember_addons
  • ember-cli application paths

Ember CLI projects are supported by looking for a module_prefix and module_path setting. Also will look in node_modules for ember_cli addons.

Installation

Using package control:

  • Ctrl+Shift+P or Cmd+Shift+P in Linux/Windows/OS X
  • type add rep, select Package Control: App Repository
  • type https://github.com/ryanhollister/es6navigator
  • Ctrl+Shift+P or Cmd+Shift+P in Linux/Windows/OS X
  • type install, select Package Control: Install Package
  • type es6nav, select es6navigator

You will now need to edit the settings for es6navigator.

module_prefix is used if you are looking to have an es6 module name mapped to your projects application path. This is intended to support ember cli applications that map a module_prefix to the application path. These parameters are optional and relative and node_module paths will still work.

For example, if my ember-cli module_prefix is 'app' and the path to my ember cli app folder is ~/Code/my-ember-cli-app/app, then I would set the preferences like so:

{ "module_prefix": "app", "module_path": "/opt/code/my-ember-cli-app/app" }

Note that the module_path has to be an absolute path and ~ references wont work.

Usage

By default the es6navigator is tied to CMD+SHIFT+D or Control+Mouse Click. Simply move the cursor to a path inside an import statement and press the keybinding. the associated file should open.

es6navigator's People

Contributors

ryan-hollister-q2 avatar ryanhollister avatar

Stargazers

Robert DeLuca avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

xbill82

es6navigator's Issues

Add support for navigation to imported variables

It should be simple to add support for navigation from imported variables:

import { translateBackEndError } from 'app/utils/datasource';

user should be able to navigate from translateBackEndError and be taken directly to app/utils/datasource.js and then scrolled to the line where translateBackEndError is defined.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.