You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When viewing a file via bat filename we can see the file with the git diff perfectly as it shows in the readme example.
however if we try to use bat as our git diff tool (via setting pager property to bat in .gitconfig)
it doesn't understand how to separate the files and show the correct diff with the correct syntax highlight.
It would be awesome if we could support git syntax so we can highlight these correctly.
git diff will add colors on its own. This is why you see some colors in the screenshot above. You can also use
git diff | bat -ldiff
which will show you the diff, highlighted by bat.
However, I think what you really want is something like #23 (see my proposal in this comment). This would allow us to show every modified hunk in a Git repository with syntax-highlighted code.
When viewing a file via
bat filename
we can see the file with the git diff perfectly as it shows in the readme example.however if we try to use bat as our git diff tool (via setting pager property to bat in .gitconfig)
it doesn't understand how to separate the files and show the correct diff with the correct syntax highlight.
It would be awesome if we could support git syntax so we can highlight these correctly.
similar to how https://github.com/so-fancy/diff-so-fancy works
The text was updated successfully, but these errors were encountered: