feature request: diff in commit detail
Really like the project, prefer the UI to tig, but one feature that I find very useful about tig is that you can drill down to the content of the diff:
but this functionality doesn't seem to be present in serie:
Read the README, adding this functionality doesn't seem to be against the project's design goals. Let me know what you think and great work with the project!
I'll second this one, specially if the diff is not just a raw diff but something like delta displays.
I'll second this one, specially if the diff is not just a raw diff but something like delta displays.
or BYO pager i.e. just config whether you want to use delta or diff-so-fancy, et. al.
Very nice, thanks @lusingander! Could you please show the "User command" you used to configure delta? Thanks!
Very nice, thanks @lusingander! Could you please show the "User command" you used to configure delta? Thanks!
Hi Simon, you can use this config:
[keybind]
user_command_view_toggle_1 = ["d"]
[core.user_command]
commands_1 = { name = "git diff ", commands = ["sh", "-c", "git diff --color=always {{first_parent_hash}} {{target_hash}} | delta"] }
Building on @rcapraro response, and in case anyone else runs into this - I found that you'll most likely need to pass the width variable to delta in the subshell to avoid funky wrapping issues (i.e.):
commands_1 = { name = "git diff (delta)", commands = ["sh", "-c", "git diff --color=always {{first_parent_hash}} {{target_hash}} | delta --width={{area_width}}"] }