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

Doesn't respond well to line breaks #14

Open
Givemeyourgits opened this issue Jun 3, 2013 · 2 comments
Open

Doesn't respond well to line breaks #14

Givemeyourgits opened this issue Jun 3, 2013 · 2 comments

Comments

@Givemeyourgits
Copy link

If I select the following text

local a = "5"
local b = "6"

local d = "15

It will only align a & b, but will ignore c.

@jarod2d
Copy link
Owner

jarod2d commented Jun 12, 2013

Apologies for the late reply. It's intentional that the plugin stops trying to align at line breaks. A setting could be added to configure whether line breaks are ignored, although I unfortunately don't have time to work on the plugin at the moment. I'll leave this open for when I have more free time, or I'd be happy to merge a pull request if you or anyone else wants to add the setting.

@Givemeyourgits
Copy link
Author

Is the change simple? I don’t know Python and looked through the code but couldn’t figure out what would need to be changed to allow looking over new lines.

All I care about is variable definitions to span new lines.

So the following

Local a = ‘a’
Local abc = ‘abc

Local zyz = ‘zyz’

Would see them all, and not just the first two. The problem is if I goto the second group and hit the Control \ again, it won’t align to the top set, it is independent of the first group’s alignment and ends up looking goofy. So I have to remove all new lines, align, then group them again.

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