vim-rails icon indicating copy to clipboard operation
vim-rails copied to clipboard

:AV with preprocessors

Open jtosey opened this issue 9 years ago • 1 comments

Thanks for this awesome utility.

Is there a way to configure vim-rails so that :AV goes to <fn>_spec.js.coffee rather than <fn>.js_spec.coffee?

For instance, when I type :AV on this:

app/assets/javascripts/user/controllers/settings/chat_settings_ctrl.js.coffee

I expect to open this:

spec/javascripts/user/controllers/settings/chat_settings_ctrl_spec.js.coffee

But I get an error message that this is not found:

Can't find file "<full-path>/spec/javascripts/user/controllers/settings/chat_settings_ctrl.js_spec.coffee" in path

jtosey avatar Nov 16 '15 22:11 jtosey

Your requested behavior seems preferable, though with .js.coffee going out of style I can't say this is a priority. I'll merge a pull request.

tpope avatar Dec 28 '15 19:12 tpope