diff-so-fancy icon indicating copy to clipboard operation
diff-so-fancy copied to clipboard

Better graphical separation of different commits

Open bruce-ricard opened this issue 5 years ago • 2 comments

I recently started using diff-so-fancy. I really like the way new files are being shown. I used to miss them when scrolling quickly even with diff-highlight, that doesn't happen anymore.

What happens to me now is that I miss the beginning of a new commit when running a command like git log -p.

Suggestion: similarly to how files are shown like:

______________________________________...
file.txt:123
______________________________________...

could commits look like:

******************************************************...
******************************************************...
commit 123abc...
author: Donald Knuth
Commit Title
* commit
* description
******************************************************...
******************************************************...
______________________________________...
file.txt:123
______________________________________...
file.txt diffs




______________________________________...
file2.txt:123
______________________________________...
file2.txt diffs



******************************************************...
******************************************************...
commit 123abd...
author: Genghis Khan
Commit Title
* commit
* description
******************************************************...
******************************************************...
______________________________________...
file.txt:123
______________________________________...
file.txt diffs




______________________________________...
file2.txt:123
______________________________________...
file2.txt diffs




The rationale behind it is: file diffs and part of a commit. Hence the graphical representation of a commit should be "larger" than the one for each file. Similarly to how "Title1" is often displayed in a larger font than "Title2", in docs for example.

Cheers.

bruce-ricard avatar Apr 23 '20 00:04 bruce-ricard

I have a suggestion for this in https://github.com/so-fancy/diff-so-fancy/pull/398

ericbn avatar May 08 '21 14:05 ericbn