tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

[Feature Request] :Efactory #533

Closed dortin42 closed 5 years ago

dortin42 commented 5 years ago

I think that is a good idea add a shortcut to edit factories, btw with :Espec factories/factory.rb does not work :c And :Eroutes and Eapplication (or :Econfig simply)

tpope commented 5 years ago

You can use :Efixtures to access factories. I don't think FactoryGirl, a popular but by no means standard library, should be given a namesake command in core (but you can create your own with projections).

You can use :Einitializer and :Eenvironment to access config/routes.rb and config/application.rb, respectively. My personal taste is this is cleaner than having a bunch of one-off commands for one-off config files.

dortin42 commented 5 years ago

@tpope :Efixtures works fine to edit factories, but neither :Einitializer nor :Eenvironment works to access config/routes.rb or config/application.rb :(

tpope commented 5 years ago

Call them with no argument. On Thu, Jan 10, 2019 at 10:02 nintF1link notifications@github.com wrote:

@tpope https://github.com/tpope :Efixtures works fine to edit factories, but neither :Einitializer nor :Eenvironment works to access config/routes.rb or config/application.rb

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/tpope/vim-rails/issues/533#issuecomment-453126022, or mute the thread https://github.com/notifications/unsubscribe-auth/AAABenbNJDsGyrtarmJZCQXgFzFyNMh7ks5vB1YJgaJpZM4Z3hsU .