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
Add "Assign file type" checkbox to Save As dialog #9732
Add "Assign file type" checkbox to Save As dialog #9732
Conversation
How it works: Demo: save-dlg-assign-type.mp4 |
Append file extension if checkbox is ON.
4a882d4
to
4304477
Compare
Just a suggestion: |
This seems too long as for me. At least, it could be "Apply file language filter" or something like this. But there are more ideas. I'm not sure what is the best option yet. |
I should probably remove the checkbox from the preferences. |
The same preference still can be set from the save dialog. The value is saved to XML as before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Remove getNppGUIMutable(). Use getNppGUI instead.
- Change IDC_CHECK_AUTOUPDATE control's Y position.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Remove getNppGUIMutable(). Use getNppGUI instead.
- Change IDC_CHECK_AUTOUPDATE control's Y position.
CONTROL "Mute all sounds", IDC_CHECK_MUTE_SOUNDS, "Button", BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP, 37, 94, 217, 10 | ||
CONTROL "Enable Notepad++ auto-updater",IDC_CHECK_AUTOUPDATE,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP, 37, 78, 210, 10 | ||
CONTROL "Set Save dialog file extension filter to *.*",IDC_CHECK_SAVEDLGEXTFILTALLTYPES,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,37,109,267,10 | ||
CONTROL "Enable Notepad++ auto-updater",IDC_CHECK_AUTOUPDATE,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP, 37, 94, 210, 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it upper in the code so it corresponds to the comment that says "Enable Notepad++ auto-updater" should be always the 1st item".
It was me who added "Mute all sounds" in the wrong place 😬
@mere-human Hooray! I like it. |
Users don't stop to surprise me with what they request and how they're able break our features 😄 |
Yes, but this one is a very special case. It seems to be one where we can't predict what will arise. |
Can you update the user manual for this feature? |
Sure, I will check it. Should I write something like in my 2nd comment in this PR? |
Very reasonable. |
@pryrt Do you have an idea whether this should be documented and what section it belongs to? |
I thought we established this.
It may need a new section. |
@mere-human / @sasumner , Have Alan Kilborn and I misunderstood the intention of the "Append extension" checkbox, as Alan describes in the Forum here? Because as I understood its intention, if you type a filename with no extension when the "Append extension" is checked, Alan and I expect it to automatically add the first extension from the current Save As type. But in Alan's experiment on 8.0-RC2, it does not append the extension if there is no extension in the file-name box. And that's how I described it in the v8 usermanual: |
Indeed, it should work as described. But it shouldn't because there is a bug. |
@pryrt Does it work if you press Enter key or Alt+S? |
I tried it:
|
@mere-human So is it a regression due to this PR? |
Yes, it is a regression. |
Nitpick: I would call it a bug because this checkbox is new functionality -- nothing to "regress". |
Fix #9515