AdamNiederer / ng2-mode

Angular Support for Emacs
GNU General Public License v3.0
73 stars 11 forks source link

Configurable file names #18

Open gexplorer opened 5 years ago

gexplorer commented 5 years ago

I'm working in a project in which naming is different from what ng2 expects:

It would be nice to have an option to configure it to specific needs

AdamNiederer commented 4 years ago

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.