jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.29k stars 604 forks source link

Keep file extensions on "edit" #1254

Closed essembeh closed 1 year ago

essembeh commented 1 year ago

Hi

When editing files, tig creates a temporary blob in /tmp to open it with my editor vim. Very cool feature, but when I edit python files for example, temp file is /tmp/tigblob.SANFvO.unknown. The .py file extension is replaced with .unknown and vim does not activate Python syntax.

Maybe it would be possible to keep the original file extension while creating the temporary filename?

Thanks