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

Override for s:app_prepare_rails_command

Open cvincent opened this issue 11 years ago • 1 comments
trafficstars

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.

cvincent avatar Aug 05 '14 22:08 cvincent

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.

tpope avatar Feb 03 '15 17:02 tpope