EasyDiff icon indicating copy to clipboard operation
EasyDiff copied to clipboard

different diff tool based on OS?

Open Lightborne opened this issue 7 years ago • 3 comments

Hi, I have my user directory synced between different machines. Some are Windows based, some are Linux. Is it possible to tell EasyDiff to use different external viewers based on the OS? I'd like to use Beyond Compare on Windows and Kompare on Linux.

Thanks!

Lightborne avatar Mar 14 '18 17:03 Lightborne

@Wargazm I didn't realize that this wasn't documented. We use a library called multiconf. See the libraries header for more info: https://github.com/facelessuser/EasyDiff/blob/master/lib/multiconf.py#L22

But this is a quick example from my personal configuration where I setup Beyond Compare on Windows and macOS.

    // External diff tool path (absolute)
    "external_diff": {
        "#multiconf#": [
            {"os:windows": "C:\\Program Files (x86)\\Beyond Compare 4\\bcomp.exe"},
            {"os:osx": "/usr/local/bin/bcomp"}
        ]
    },

facelessuser avatar Mar 16 '18 23:03 facelessuser

oh, fantastic! Thanks so much.

Lightborne avatar Mar 17 '18 00:03 Lightborne

I'll leave this open as a reminder that I need to formally document this.

facelessuser avatar Mar 17 '18 00:03 facelessuser