t9md / atom-open-this

Open file under cursor like `gf`(Vim), `C-x C-f`(Emacs)
https://atom.io/packages/open-this
MIT License
19 stars 5 forks source link

resolve and open by (beforehand) given paths? #4

Open aqzhyi opened 8 years ago

aqzhyi commented 8 years ago

Hi, I have a rails app and directory structure like this:

./app/assets/app/modules.js
./app/assets/app/routes.js
./app/assets/app/*
./app/assets/pages/*
./app/assets/partials/*
./app/assets/layouts/*
./gulpfile.babel.js
./.babelrc
./.gitignore
etc.

I will writing import { ngApp } from 'app/modules', import 'app/routes' etc, and resolve by babel resolveModuleSource or NODE_PATH=./.

for now, I have no workaround on this issue.

BTW, atom-autocomplete-modules provided me to configure the Verdor Directories with

image

Did you have any ideas?

image

t9md commented 8 years ago

Okay, will try to search user configured pattern. But Im little busy for now need a week to implement. Thanks for suggestion!

albertorestifo commented 8 years ago

In webpack, you can configure the option resolve.root to a custom directory, other than node_moduels. This is how I work with big compiled JS projects.

It would be so awesome if this package looked that setting up and searched those directories too!

jpbochi commented 7 years ago

I like this idea. Any development since last year?