Ditto icon indicating copy to clipboard operation
Ditto copied to clipboard

Please update for Beyond Compare 5.

Open michaelakin opened this issue 1 year ago • 5 comments

Please update to add Beyond Compare 5 and also fix the parameters to be able to effectively compare json files in BC and change the method of comparing to sort the it in beyond compare.

https://forum.scootersoftware.com/forum/beyond-compare-discussion/general-aa/91626-windows-explorer-shell-extension-not-working-in-3rd-party-apps?p=94034#post94034

michaelakin avatar Jan 09 '25 20:01 michaelakin

Added beyond compare 5 path to the file paths Ditto checks.

https://github.com/sabrogden/Ditto/releases/tag/nightly

FYI you can specify your own path in options - general - advanced - "Diff application path"

What parameters are you looking to be passed to compare json files

sabrogden avatar Jan 15 '25 04:01 sabrogden

What parameters are you looking to be passed to compare json files

Thanks for the tip about the diff application path.

I haven't been able to figure out why when I used Beyond Compares Clipboard and compare, I can sort a json file, and when I used Ditto, I cannot.

Here is what I captured for the command line args when launching beyond compare.

Ditto:

Image

Beyond Compare "Clipboard Compare"

Image

I see a few differences, but I don't know why theirs works and Ditto does not.

  • BC is going to a different temporary location
  • BC has a title
  • BC doesn't have quotes around the paths
  • BC has a .tmp filename extension.

Here is the actual sorting command they do that fails:

C:\WINDOWS\system32\cmd.exe /c ""C:\Users\User\AppData\Roaming\Scooter Software\Beyond Compare 5\Helpers\JSON\JSON_sorted.bat" "C:\Users\User\Downloads\DittoPortable_64bit_3_24_323_0\Ditto\ClipCompare\ditto_compare_2.txt" "C:\Users\User\AppData\Local\Temp\BC555A5.tmp""

michaelakin avatar Jan 17 '25 15:01 michaelakin

I found the utility that JSON_sorted calls only supports utf8 files, Ditto was passing in unicode files. Updated Ditto to save utf8 files when diffing, the latest is working for me, https://github.com/sabrogden/Ditto/releases/tag/nightly

It opens and then you can select the format JSON sorted.

sabrogden avatar Jan 21 '25 21:01 sabrogden

That sounds awesome. Thanks!

michaelakin avatar Jan 21 '25 22:01 michaelakin

Nice, nice, nice. The nightly works with Beyond Compare 5 now (I needed to change the default diff application path for it to work, see the sagbrogden's instructions above).

PS I immediately made a small donation to this project.

SanderBouwhuis avatar Jan 30 '25 08:01 SanderBouwhuis