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

snippet: make json field tag expansion smarter #927

Merged
merged 1 commit into from
Jul 5, 2016

Conversation

fatih
Copy link
Owner

@fatih fatih commented Jul 5, 2016

Now the json snippet expansion is much more smarter. It does the followings:

  • The placeholder is pre populated according to the first word in the line
  • It automatically converts it to either snake_case or camelCase. By default it's snake_case. Can be changed via g:go_snippet_case_type setting.

Demo:

screen recording 2016-07-05 at 04 15 am

Now the `json` expansion is much more smarter. It does the followings:

* The placeholder is pre populated according to the first word in the
  line
* It automatically converts it to either `snakecase` or `camelcase`
@fatih fatih force-pushed the json-snippet-case-type branch from 1f0fd07 to 153f223 Compare July 5, 2016 01:12
@fatih fatih merged commit 0b1fa09 into master Jul 5, 2016
@fatih fatih deleted the json-snippet-case-type branch July 5, 2016 01:23
@andrewstuart
Copy link
Contributor

This is awesome. :-)

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.

2 participants