-
Notifications
You must be signed in to change notification settings - Fork 925
Bring back longer lines #2437
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
Comments
This wasn't really a change we've done this since the very early days. What changed is having a single config option rather than 6 or something. Were you configuring them individually before? Is just turning off the heuristics too coarse an option? |
sorry, I guess my history is a bit off. Yes, I used to have to set several config options to increase various line-limits, but now those are gone. By "turning off heuristics", do you mean setting |
Yes I wonder if we need that to be a three-valued option: prefer short lines, use heuristics, and prefer long lines. |
@nrc that's an interesting idea. Would "prefer long lines" effectively set all heuristic numbers to equal max_width? |
Something like that, yes |
@nrc I would probably be able to put together a PR for that. I can do a WIP tomorrow. The bikeshed would be whether the option name |
That would be great, thank you! I would probably change the option name to |
I don't think
However, |
|
Does anyone actually use the current |
To be honest, I'm not sure if even I want this behavior. I still need to browse through my code formatted with my proposed behavior and see what I think of it. It might be that I still just want more fine-grained options for line-length formatting again... But anyway, I'm blocking on #2446 right now, so I'm trying to fix that. |
also, thanks for the note about |
Now that there's
...but it seems like everyone actually just wants better heuristics, and there's a clearer #2636 about that. |
The initial request is done through the |
Since the change to the "heuristics" model of line length limits, I have been unhappy with the line formatting. I can set my max_width to 100, but many lines that are far below that limit get broken up -- often at something like a 1:4 ratio (!) which leads to a huge increase in vertical size of my code.
@nrc commented that "we'll have to see that the demand from users was there" here: #1984 (comment)
so consider this my input into the demand for more flexible configuration.
The text was updated successfully, but these errors were encountered: