diff.rs icon indicating copy to clipboard operation
diff.rs copied to clipboard

Special file handling

Open xfbs opened this issue 1 year ago • 0 comments

We should handle some file types specially:

  • If you look at a Markdown file, you should be able to render it as an actual markdown file (we could still show a diff, but when you render it, it would be word-based and not line-based)
  • If you look at an image/pdf/..., we should display it
  • If you look at a binary file, we should show it as hex-encoded (similar to xxd or hexdump output)

xfbs avatar Oct 31 '24 21:10 xfbs