Refined-github: Default to rich diffs for SVG files

Created on 7 Jan 2020  路  2Comments  路  Source: sindresorhus/refined-github

The feature existed but was broken. More info found in https://github.com/sindresorhus/refined-github/issues/2041

Removed in https://github.com/sindresorhus/refined-github/commit/e88a05df70ba76134a9b7e2331b18b999291927b, you can probably revert the commit and rewrite the loading behavior as suggested.

Originally asked in https://github.com/sindresorhus/refined-github/issues/1599

When SVG files are edited, usually the rich diff (rendered image) is more useful/desirable than textual diff.

This is particularly useful when such files are edited in an editor rather than by hand, since the changes are usually extensive enough to go over the size limit for showing the diff automatically, so neither the code nor the rich diff are shown by default (the "Load diff" link is shown instead). See for example pretty much any PR at icon repos, such as elementary/icons/pulls.

enhancement help wanted

Most helpful comment

I would like to see this for pictures.

All 2 comments

I would like to see this for pictures.

+1, same request for other images.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hkdobrev picture hkdobrev  路  3Comments

MilesBHuff picture MilesBHuff  路  3Comments

hkdobrev picture hkdobrev  路  3Comments

juliocanares picture juliocanares  路  3Comments

pawelad picture pawelad  路  3Comments