ng2-mode icon indicating copy to clipboard operation
ng2-mode copied to clipboard

Configurable file names

Open gexplorer opened this issue 7 years ago • 1 comments

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

gexplorer avatar Dec 11 '18 23:12 gexplorer

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.

AdamNiederer avatar Aug 25 '19 16:08 AdamNiederer