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
186 stars 16 forks source link

Possibility to edit file directly on diff #30

Open PixelT opened 6 years ago

PixelT commented 6 years ago

When I'm using default vscode compare files options, I can edit the file on right directly on diff window / tab. Will be great if I can also edit file using your partial diff extension :)

ryu1kn commented 6 years ago

Hello @PixelT , thanks for your suggestion. It's interesting that you want to edit the text on diff (and reflect them back to the original text, I assume?) because I actually wanted the text to be locked in the diff view when I developed this extension πŸ˜„

But I'd like to consider changing the behaviour (though the change would be not too easy).

By the way, is there any specific use-case you have with the native editable diff view?

PixelT commented 6 years ago

For example: when I'm using CMS systems like Wordpress or Magento, it easier & faster to diff changes between my theme and default (parent) theme (if there was any changes or updates which I need or can add into my theme) and edit it directly in diff, because right now I must compare it with diff, then go to file, search place where the changes are and edit it manually in this file ;)

As I wrote, in default vsc diff it's possibility to edit one side :) Maybe a good option will be to add settings to set on / off possibility to edit on diff view?

ryu1kn commented 6 years ago

Thanks for the information! It’s always great to know the context so that i can understand how the current situation impacting you πŸ˜‰

ryu1kn commented 6 years ago

And yes, providing an option to choose editable or not, or a separate command can solve the dilemma.

dandv commented 5 years ago

+100 for editing both panels, or one of them if the other one is the clipboard. WebStorm allows this, and it's incredibly helpful. Use cases:

ryu1kn commented 5 years ago

Thanks @dandv for your input. I really appreciate that you also provided the use cases!

nemchik commented 5 years ago

This may be slightly out of scope for this specific issue (or even for this project) but I'd really love to see full merge capabilities.

http://winmerge.org/ is a good example of what I'm looking for. I am not requesting every single feature from WinMerge be added here, but specifically the ability to merge left or right. Basically "make both files match for this diff using what is on the left or right".

xstable commented 4 years ago

definitely a very heavy missing feature! Came across from PhpStorm and give VSCode a try. Was one of the first stuff I've searching for.

mkarulin commented 4 years ago

definitely a very heavy missing feature! Came across from PhpStorm and give VSCode a try. Was one of the first stuff I've searching for.

Same here. Feels like a missing feature when coming from PHPStorm.

irvnriir commented 3 years ago

Im not sure about how it merges in the clipboard case, but for the "Compare Text in Visible Editors", it can be achieved by changing the function/call to the same one as in VSCode Explorer (sidebar) 's "Select for Compare" + "Compare with Selected" .

peterwx commented 3 years ago

In addition to winmerge full merge use case referred above, a even more useful IMO feature would be partial merge exemplified by the following workflow:

Li-Mingshuang commented 1 year ago

Still without this function, hard to use.

Atomicboot commented 4 months ago

This function would make this project explode, it would be very useful, don't think it will be added anymore but i still hope for it