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

Add an option to use single quotes for partials

Open jeromedalbert opened this issue 8 years ago • 2 comments

Add a g:rails_single_quotes_style option. Addresses #458 and the discussions in #343.

I am not a Vimscript guru (being a recent Vim convert) but after hacking these lines together, this seems to work.

jeromedalbert avatar Jun 22 '16 20:06 jeromedalbert

The basic logic for figuring out the diff line can be found in s:StageInfo(). I'd recommend duplicating it as a starting point. (Don't try to DRY it up.)

If a range is given, I'd say just use the first line of it, regardless of where the cursor is.

tpope avatar Jan 08 '19 20:01 tpope

hey @odnoletkov , it seems you implemented something like this in your fork. Are you planning to integrate it into the plugin?

lucasdf avatar Sep 18 '19 20:09 lucasdf

See #37

odnoletkov avatar Sep 18 '19 20:09 odnoletkov

Note the linked Fugitive PR is a prerequisite and the current bottleneck.

tpope avatar Sep 18 '19 21:09 tpope