Open kirawi opened 3 years ago
Delta is a pager that acts on already diffed data (with -
and +
prepended to diffed lines like in the default git diff output) and simply applies syntax highlighting and better colors it. We will have to use similar for this, which we already use in helix to :reload
the file from disk.
@pascalkuthe mentioned he'll probably pick up the work on this in the future after git gutter is merged.
After #3890 is merged, the main blocker will be rendering the diffs side by side (as a form of virtual text). I am working with @kirawi to land the necessary changes in the rendering system to make that happen.
Is this feature available in the current version? I see it is open, so I assume I still can not diff two buffers?
Yes, open issues typically indicate that a feature hasn't been implemented yet.
Hello! Would it be possible to use inline git diff in one buffer? It would be amazing
Hello! Would it be possible to use inline git diff in one buffer? It would be amazing
Please open a separate issue for that.
There are 2 uses cases I'd want helixdiff to handle:
git conflictstyle diff3 which can use:
vimdiff -f -d -c '4wincmd w | wincmd J' "$LOCAL" "$BASE" "$REMOTE" "$MERGED"
Maybe delta can help in that case: https://github.com/dandavison/delta
It is the best terminal diff viewer I ever used and it is also written in rust.