Open ohault opened 3 months ago
Hello Olivier,
For comparing INI files, the simplest solution would be to sort both files (on section and key). The problem is with comments: these don't have a key, so they cannot be sorted that way. Also: if you save either file (after merging or editing), you will save a sorted INI file. This may not be a problem, but that depends on the situation).
The minIni library only handles reading and writing INI files. It does not have support for sorting. So what you would need to do, is to read the complete INI file into memory, sort it, and then write it to a temporary file (before starting WinMerge).
Regards, Thiadmer
On Thu, May 16, 2024 at 7:14 PM Olivier Hault @.***> wrote:
I wonder if your INI file library could help to implement this feature.
More details - WinMerge/winmerge#1975 https://github.com/WinMerge/winmerge/discussions/1975
— Reply to this email directly, view it on GitHub https://github.com/compuphase/minIni/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXNGQYTSJG5AFKJNQHRMBDZCTSQDAVCNFSM6AAAAABH2UF7ASVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDAOJTGE4TSNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I wonder if your INI file library could help to implement this feature.
More details - https://github.com/WinMerge/winmerge/discussions/1975