Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to use single quotes for partials #462

Closed

Conversation

jeromedalbert
Copy link

@jeromedalbert jeromedalbert commented Jun 22, 2016

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.

@jonmast
Copy link

jonmast commented Mar 10, 2017

@jeromedalbert There are other places where this plugin generates quotes, for example in the default projection templates. Single vs double quotes doesn't seem to be consistent, I see some of both. Ideally this setting would control all of them. The Rextract feature does seem to be the most commonly used, it is a good place to start.

@tpope
Copy link
Owner

tpope commented Mar 10, 2017

That raises a good point actually, as projection templates are very similar to rails generate. Is there any mechanism to change the quoting style in Rails generators?

@jeromedalbert
Copy link
Author

jeromedalbert commented Jun 23, 2024

This PR is stale, closing it.

@jeromedalbert jeromedalbert deleted the single-quote-option branch June 23, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants