desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Display SVG file and diff not as plaintext but as images

Open samuelroland opened this issue 5 years ago • 5 comments

Describe the feature or problem you’d like to solve

When I look at commit content in some repos, i see different commits with svg files added or modified, and the problem is that I can't see what's different before and after the modification or how looks like the file... I don't have any other solutions that open the file with the default app (but I can't see the older version...) :(

Proposed solution

As for images diff, display before and after versions and the 4 widgets like "Onion skine", "Difference", etc. Perhaps see as plaintext is useful too, so maybe the default view like image with the ability to change to plaintext view would be good.

This behavior will be resumed like that:

  • Open commit content
  • Click on a svg file
  • See immediatly rich diff like other normal images (png, jpeg).
  • Use the 4 widgets to see more details of the diff

samuelroland avatar Jan 02 '21 00:01 samuelroland

If none is interested in implementing this, can I get assigned to this ?

maifeeulasad avatar Jan 20 '21 13:01 maifeeulasad

I think this would be useful, and for me it's important that showing the SVG source will also be an option. I can imagine something like this:

image

orihpt avatar Aug 16 '22 08:08 orihpt

Any Updates on this Feature request? I comitted now about a dozen svgs and I'm not quite sure which ones are the right ones and which ones are the old ones. Wanted to create an issue but found this feature request was already made ...

Any new info about this? Will be implemented or is not necessary?

Kind regards, Daniel

DanielOberlechner avatar Sep 25 '23 13:09 DanielOberlechner

For what it's worth, I'd really like the option of seeing SVG files and diffs as code as well as as images.

MarkNahabedian avatar Feb 02 '24 15:02 MarkNahabedian

While struggling with this further, I see that the diff of an SVG has the options: "2-up", "Swipe", and "Onion Skin". Please add something like "code diff".

MarkNahabedian avatar Feb 02 '24 16:02 MarkNahabedian