Posted by oug-t 3 days ago
Fortunately you can create a git diff TUI using `fzf` and `git diff` with pretty much a 1 line shell script.
For example: https://github.com/nickjj/dotfiles/blob/master/.local/bin/gd
If you run `gd` or `gd --side` it will show you a diff.
Delta can be used as a git diff tool by configuring your git tools, such as: https://github.com/nickjj/dotfiles/blob/master/.config/git/c...
I will definitely try to integrate it with `delta`.
Now `difi` is enabling interactive feature when for letting user to see the changes directly inside editor with nvim plugins. `delta`'s outputs formatted ANSI text is also very interesting to integrate!
Thank you!
Now it defaults to comparing current branch vs `main` for PR review, but I will definitely see the value in a `local changes` mode for pre-commit checks!