-
Notifications
You must be signed in to change notification settings - Fork 810
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
Do not save compare options changed on the fly. #460
Comments
@sdottaka: I consider to create a pull request for this, but I don't want to start, before you comment on this. |
I agree with your idea, but I prefer all options, not just the comparison option. FYI, you can call CRegOptionsMgr::SetSerializeing(false) to prevent the settings from being saved in the registry. |
I made a mockup, how it could look: Colors and strings could be adjusted. I think it is a good idea to provide some kind of warning banner. I'm not sure about the strings. Instead of: It could be: |
Probably the banner should be yellow (warning) instead of red (error), because everything works like intended. |
|
I propose to make buttons presets on the toolbar for different options of user settings. |
Mh, my motivation to implement this is somewhat reduced, as I found a neat workaround suitable for me. I use the newly introduced Probably this could even be improved like this: Every option contained in the file
Another name for the file could be |
I tried to look into an implementation. The right place should be in the code inserted in pull request #750, correct? If I understand it correctly there is no So the plan should be adjusted to: So the following code should be adjusted. If a
Can you please confirm that a pull request like this would be included? |
WinMerge has a command-line option /inifile that specifies the path to the INI file. For this reason, this option also needs to be changed to accept multiple INI files. Instead, I prefer to store separate sections in the same INI file, as shown below. winmerge.ini
|
Good idea to add another section to the winmerge.ini file. I had the I created the pull request #1071 to implement that behavior. |
After reading the "WinMerge" section try to read the "Defaults" section. Overwrite existing entries in "iniFileKeyValues" with the ones from the "Defaults" section. This section is not written to, as it should contain default entries, that are reverted at each restart of WinMerge. More informations see #460.
I just tested the new "Defaults" section of the ini file in the current beta. |
As the corresponding feature has been implemented, I think this issue may be closed. I would have preferred a less ambiguous name for the INI section, like "[Startup]" or "[Overrides]", but no biggie, as it is an "hidden, advanced feature", and nevertheless it works as it is. |
I usually want to compare everything:
But in special cases I have to deactivate 1 or 2 rules (especially "whitespace" and "case sensitive") of that list. If I do this and restart Winmerge, the rules are still deactivated and I probably miss important differences.
I want to reset my compare options on each restart of Winmerge to my defaults. IMO other options are not affected.
What are your ideas to handle this use case? Is it even possible yet?
I propose to add an option and a button:
Save compare options now
Implementing note: Some options like "compare whitespace" can be changed on the fly. They need to be reverted as well.
The text was updated successfully, but these errors were encountered: