atom / symbols-view

Jump to symbols in Atom
MIT License
163 stars 114 forks source link

No symbols found for .erb files #198

Open Albertc opened 7 years ago

Albertc commented 7 years ago

In Ruby on Rails, it is very used js.erb files (Javascript) or html.erb (html), and when I want to go to symbol with "Ctrl+r", "No symbols found" appears

autobrain-stanley commented 7 years ago

You have to associate the js.erb file type to the javascript language. https://atom.io/packages/file-types

Albertc commented 7 years ago

For now, the solution is tell Atom than .js.erb files are not JavaScrip (Rails) anymore In fact is not necessary to associate js.erb to javascript language as you say, because only associating js.erb file types does not work

But the good solution should be, instead of modify the file type of js.erb's Atom files, tell to "symbols-view package" than js.erb files must be treated as js