ryu1kn / vscode-partial-diff

Visual Studio Code Extension. Take a diff of 2 parts of text(s)
https://marketplace.visualstudio.com/items?itemName=ryu1kn.partial-diff
MIT License
184 stars 15 forks source link

Adds clipboard comparison support #6

Closed eamodio closed 7 years ago

eamodio commented 7 years ago

Adds a new extension.partialDiff.diffSelectionWithClipboard command that compares the clipboard to the selected text.

Since this builds on https://github.com/ryu1kn/vscode-partial-diff/pull/5 -- the diff here isn't as nice as it should be. The changes specific for this PR are in https://github.com/eamodio/vscode-partial-diff/commit/711856f74c1bed8da69f3b101f3c18cf5a94de4e

ryu1kn commented 7 years ago

Thank you for this enhancement! I like this idea.

Let's finish #5 first and discuss on this ;)

eamodio commented 7 years ago

@ryu1kn now that #5 is merged (thank you), I've rebased this back to master and fixed the failing test.

ryu1kn commented 7 years ago

Thanks @eamodio , I've just merged your PR!

I notice I sometimes compare 2 pieces of text both not on VSCode. What I was doing was opening 2 untitled tabs, one for each text, and using mark text command twice to take a diff. Now, thanks to your improvements, these steps can be reduced!

eamodio commented 7 years ago

@ryu1kn awesome -- thank you! Looking forward to the release!

ryu1kn commented 7 years ago

@eamodio Just released as v0.3.1! Now everyone can use this feature you implemented. Thank you! 😉

eamodio commented 7 years ago

Excellent - thank you!