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

Ruby symbols #24

Open
goodgravy opened this issue Feb 6, 2014 · 1 comment
Open

Ruby symbols #24

goodgravy opened this issue Feb 6, 2014 · 1 comment

Comments

@goodgravy
Copy link

Breakage when trying to align symbols like period and period_start here:

  t.string  :period, limit: 16, null: false
  t.timestamp   :period_start, null: false

A workaround is supplying a custom VAlign.sublime-settings – can I suggest you add docs on how to do that because most people could scratch their itches then.

@jarod2d
Copy link
Owner

jarod2d commented Apr 10, 2014

Sorry for taking forever to reply...I'm actually not sure how you could modify the settings to make this work in a way that also doesn't break the standard : alignment.

I think this could be fixed with a new feature that places alignment characters on the left or right based on its context, so if you have property: value, the colon will be on the left, and if you have ruby_method :symbol, the colon will be on the right. I'll try to add this the next time I'm able to work on the plugin.

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

No branches or pull requests

2 participants