danielroedl / vsc-meld-diff

Visual studio code extension to open two files in the external tool meld.
https://marketplace.visualstudio.com/items?itemName=danielroedl.meld-diff
MIT License
12 stars 6 forks source link

Diff with clipboard support #4

Closed pbaldauf closed 3 years ago

pbaldauf commented 3 years ago

This is the plugin I was always looking for since moving from Sublime Text to VScode.

The only thing I am really missing is the "Diff with clipboard" feature provided by the FileDiffs Plugin for Sublime (https://github.com/colinta/SublimeFileDiffs) Think it would be even possible to support additional external diff tools, but that's a feature for the future ;)

This PR adds support for "Diff with clipboard" in same fashion as for Sublime. image

image

danielroedl commented 3 years ago

Thanks for the PR. I don't know this option of the FileDiffs Plugin, but it's very useful!

I just have made one comment regarding the title of the new command. I think the rest is ok.

I like the way how you compare the selection with usage of a temp file. I think I will add based on this also an option to compare not saved files in the same way (or changed files that are not yet saved). Secondly I will also add the settings options to configure the tool used for the diff. This change I also want to make a long time. Thanks for the reminder. :smile:

I hope I will found some time this weekend for these two changes. Maybe I can release them together with your "clipboard command" change.

danielroedl commented 3 years ago

Thanks for the support!