ng2-mode
ng2-mode copied to clipboard
Configurable file names
I'm working in a project in which naming is different from what ng2 expects:
- home.component.ts
- home.template.html
It would be nice to have an option to configure it to specific needs
Hey, sorry for the late response, but I think I've solved this issue in a much more general way, and will be removing ng2-open-counterpart in the next release in favor of this new implementation. You can check https://github.com/AdamNiederer/file-ring for more information.
Documentation is a bit sparse, but for your case, you can set file-ring--rings to this:
(setq file-ring--rings
'(((:ext ".component.ts")
(:ext ".template.html")))
then, activate file-ring-mode in your angular project, and it should "just work" in the same way ng2-mode does now.