vim-rails
vim-rails copied to clipboard
:AV with preprocessors
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
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.