git-gui: allow larger width for the commit message buffer#34
Conversation
|
While testing, I found that we do not need the special case. Just make the width really large, like 2000. This would then also be backward compatible. Therefore, it should be sufficient to increase the allowed range to a lot more than 99. Also, it would be "allow the commit message field to resize". "Reflow" is something different. And please make sure not to sneak in unrelated changes, like the new empty line. |
|
@j6t This pull request should be the minimum change according to what we discussed. Please also have a look at the alternative pull request #35 , it contains this commit plus two more. If you merge any of these two requests - I will close the other, this is just to save some more edits from your side. |
|
Please don't spam pull request about topics that are basically the same. Why not go from 99 to 9999 in the first try? Let me suggest this commit message (note, not "buffer", but "field"):
|
|
@j6t Pull request updated as requested. |
|
I'm actually not happy with the new label. For one, "1000" is an arbitrary value and smaller values work, too. For another, "fit to window" is dictated by good user interface behavior (no text remains invisible outside the window and is inaccessible), but is actually not a design goal in itself. So, if you are setting the value very high, you are actually exploiting an implementation detail. |
Users may like to make the main window very wide. In this case, a rather small size of the commit message field leaves a wide unused space at the bottom-right. Allow settting the field width to values much larger than 99 characters. In fact, users can set it to extreme values to fill the entire space regardless of window width: the widget geometry will be negotiated to be limited to the available space despite the large requested width. Signed-off-by: Alexander Shopov <ash@kambanaria.org>
|
I think you are nitpicking here. However the label is not a hill I will die on. As long as I know the chicanery to get the behavior I want - that will do it for me. At the beginning I though I should add such information via a tooltip but within Tcl/Tk that needs an additional
That is true but I think we settled on your proposal to not use a special case so I guess this should be OK for now. Would the change be OK now for merge? I feel I am wasting way too much time for effectively a two character change for widget width. |
|
@j6t Hannes, |
|
Thanks, this looks good.
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." |
Small adjustments to allow the buffer for the commit message to reflow with the window. Changes concern the .vpane.lower.commarea.buffer branch of the widget tree.
Update the label for the config value in the settings window