I noticed that git commit has a fancy way of showing source/destination path in a regex-like way, for example:
wallpapers/{8.jpg => 1.jpg}
Is there any Python module that produces this kind of "shortenage"? For example, I would expect something like:
/home/user/doc.pdf => /home/user/Desktop/doc.pdf
turned into
/home/user/{doc.pdf => Desktop/doc.pdf}
or perhaps even
/home/user/{ => Desktop}/doc.pdf
another example from git
{deprecated => deprecated code}/Binary.cs