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

Override for s:app_prepare_rails_command #338

Open cvincent opened 10 years ago

cvincent commented 10 years ago

It would be useful to have a setting to override the logic in s:app_prepare_rails_command to allow for a variety of custom setups. For example, one might want to run commands through vagrant ssh, or (in my case) echo commands into a FIFO to run them asynchronously. It might look similar to g:rspec_command from vim-rspec.

tpope commented 9 years ago

s:app_prepare_rails_command is used for commands that require interactivity (:Console), commands that should be asynchronous (:Server), and commands that must be run inline to capture output (:Generate). This is iffy for the vagrant ssh case (:Console would require ssh -t, for example), and sounds like it would outright break things for an asynchronous FIFO. Open to other options but a flat configuration option seems like a no go.