-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
"Leading blanks" option to Column / Multi-Selection Editor #11148
Comments
Any objection to me tackling this one? |
I thought it was clear. |
Yes, why not? Rather a choice Leading (combobox) among None, Zeros and White spaces. Squeeze a little more in the following zones:
to make room choice Leading right after "Repeat", in order to avoid the confusion. @alankilborn Should I assign this issue to you? |
@pryrt and I had some offline discussion about UI several hours ago:
Checking one checkbox would uncheck the other. |
If it's a combobox (as I said), then there's only one control which contains 3 choices. |
Understood. |
So far, you haven't assigned me...
I considered the UI more fully perhaps and was wondering if we could make this change, as it more accurately describes the feature:
|
Done
Sorry I don't follow you at all. |
@Yaron10, do you have some input on this issue? |
|
The purpose of Why would one want to align numbers to the left ( Regardless: |
Thank you for your suggestion. But I don't see how and why the ComboBox "Leading" should be aligned with
for having the result: Initial number: X Hope my intention is more clear now. |
I haven't used this dialog frequently, and I might be missing something. If Regarding the final layout: I was looking at the current dialog and thought that it shouldn't be aligned with But your proposed layout looks good. 👍 Thank you. |
I'll try to clarify my point.
and
|
Playing with it a bit more (and with a mono-spaced font), I understand @alankilborn's |
What you have observed and your arguments make sense.
There is an example (which is contrary yours): My point is, Leading option is independent of all other options, as it obeys the rule.
There must be somethings I'm missing, or I misunderstand what it means "Trailing Spaces" totally. Could you elaborate it please? (Maybe with an illustration) |
I'm exhausted, and reading your reply deserves a clear mind. :) Thank you and good night. |
I asked for Yaron10's contribution here, because I thought he was familiar with all of Notepad++ and would instantly understand my most recent suggestion. Unfortunately, perhaps this was not the case. No problem, not everyone can be familiar with everything. :-) So...here I go with more explanation, to hopefully clarify: Using "Leading" for a new control label here is not the best idea IMO, because "padding" (what the control is really controlling) can be either to the left of the inserted numbers (in which case it IS leading), or it can be to the right of the inserted numbers (in which case it is NOT leading, it is trailing). Here's an example of the way it currently works, with Leading zeros uncheckmarked: Start with: and do this: to obtain: Note that on lines 1 through 9 there is a (trailing) space inserted after the number that is inserted. Thus, if the existing behavior is to be retained for the revision of some part of the feature, calling it "Leading" is, well, misleading. My suggestion to label the control as "Full-width padding" was to mean that if the inserted number is less than the number of digits in the widest number that will be inserted through all of the lines, padding will occur to achieve "full-width". Maybe there should be FOUR choices to the combobox control, not only THREE:
If there is no possibility for padding at all, the new control is not meaningful and will not affect the output when the command (in the screenshots above) is executed, example: Start with: End with: (The numbers inserted all are single-digit, so there is nothing extra inserted) So, in SUMMARY, my suggestion is to remove Leading Zeros checkbox and replace it with a combobox with the label "Full-width Padding :" and give the combobox four string values:
"Trailing spaces" would be the default, as that is the current default when Leading zeros checkbox is unchecked (the default in 8.5) |
I hope I understand you correctly. It's true that Checking
We were trailing behind @alankilborn. :) How would you implement Initial number: 999. |
I presume what you are showing is a 2-line-by-3-column rectangular selection active when the command is invoked? I suppose a padding selection of (the proposed) "None" choice would cause the following to result: with a virtual-space appearing after the final |
Maybe the addition of "None" as a padding choice is too much "upscoping" for the current issue. |
👍 |
I would want @donho 's concurrence before starting actual work on this. The latest proposal is: Remove Leading Zeros checkbox and replace it with a combobox with the label "Full-width Padding :" and give the combobox three string values:
"Trailing spaces" would be the default, as that is the current default when Leading zeros checkbox is unchecked (the default in 8.5) |
@alankilborn Let's do it as simple as possible:
Leading - none
Leading - zeros
Leading - spaces
|
OK. |
Description of the Issue / enhancement
Please add "Leading blanks" option to Column / Multi-Selection Editor.
Expected Behavior
Leading blanks would allow preserving column width. Leading zeros is not an option for languages that give leading zero special import, eg octal format.
The text was updated successfully, but these errors were encountered: