Wilfred / difftastic

a structural diff that understands syntax 🟥🟩
https://difftastic.wilfred.me.uk/
MIT License
20.59k stars 333 forks source link

Output file paths as relative to current working directory #709

Open daniellockyer opened 4 months ago

daniellockyer commented 4 months ago

Firstly, I love Difftastic <3

It'd be great if Difftastic output file paths relative to my currrent working directory. I often do git diff inside a subfolder of my git repo, and then copy + paste the filename to edit in vim.

However, the filename is relative to the git dir and not my CWD, so I have to go and edit the front of the path to remove dirs to match where I am.

Small QoL improvement but still 🙂