Skip to content
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

different diff tool based on OS? #29

Open
Lightborne opened this issue Mar 14, 2018 · 3 comments
Open

different diff tool based on OS? #29

Lightborne opened this issue Mar 14, 2018 · 3 comments

Comments

@Lightborne
Copy link

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!

@facelessuser
Copy link
Owner

@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"}
        ]
    },

@Lightborne
Copy link
Author

oh, fantastic! Thanks so much.

@facelessuser
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants