CJTozer / SublimeDiffView

Side-by-Side Git, SVN and Bazaar Diff Viewer for Sublime Text 3
https://packagecontrol.io/packages/DiffView
MIT License
20 stars 7 forks source link

Invoking with diff with two files #47

Closed mcrajah closed 7 years ago

mcrajah commented 7 years ago

I am not using any of the supported VCS. I use P4. I want to invoke diff by passing two file to diffview using my custom p4 plugin. I would like to invoke diffview using run_command().

My files to diff are in a list with full path, but the run_command needs a map. How should I construct the map so that something like this will work.

window.run_command('diff_view', file_map)?

Thanks

CJTozer commented 7 years ago

So, two quick points to answer your question:

So, perhaps a simple "compare 2 files" plugin might be what you want. Alternatively, I'd be very happy to accept a pull request for P4 support - see e5e2280c00ffbc855914cb4b0b9d85f79d8b10a1 for the pull changes required for somebody to add bazaar support...