Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use custom diff command in diff view (it currently works but requires pressing a key) #1129

Closed
timotheecour opened this issue Jul 14, 2021 · 3 comments

Comments

@timotheecour
Copy link

following https://kparal.wordpress.com/2020/12/16/show-a-side-by-side-git-diff-on-any-commit-in-tig-using-meld/ (and adapting it) I've adding this to $XDG_CONFIG_HOME/tig/config:

bind main w !git diff %(commit)^!
bind diff w !git diff %(commit)^!

which allows me to at least use custom git diff options to view diffs in tig by pressing w.

My question is, how do i get that same custom git diff options to apply without having to press a key?

@pablospe
Copy link

Also interested on this. It would be nice to replace the default view-diff by delta (side-by-side diff):
https://github.com/dandavison/delta

Would that be possible with the tig/config?

@pablospe
Copy link

related PR: #1140

@pablospe
Copy link

I would close this issue, it is duplicated:
#542

@koutcher koutcher closed this as completed Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants