-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with pod structure #18
Comments
Hey, I don't use the pod structure myself. That's probably why I desperately wanted a hotkey in the first place to navigate between all the folders. So please walk me through how it works and what should happen. Googling around I see that the directory structure should look something like this:
Is there only "controller.js" in a pod structure or can there also be a "component.js"? Are there any other files that can be in the pod? So basically CTRL+ALT+E should then toggle between controller.js and template.hbs, correct? |
Unfortunately it's a bit more complicated than that, especially since there isn't a single source of truth for application-wide pod structure. By default (in ember-cli 1.13.8), all pod-enabled blueprints will generate into {model-name}/{filename}, regardless of type. However, people currently seem to use different strategies for separating models, routes, and components. For example, I tend to split up my pods in the following way (adopted & adapted from this ember-cli issue comment):
Also note that there may be significant changes to this pattern when routable components land. |
Hey, unfortunately I haven't found time to work on this since the issue was opened. If you still need this, feel free to hack on the component and send a PR. :) Closing for now, will reopen if needed. |
e.g., switching component view from
template.hbs
via hotkey will opentemplate.js
(even if there's no such file)The text was updated successfully, but these errors were encountered: