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

Draw ruler and box around headers - rebased

Open Svalorzen opened this issue 1 year ago • 4 comments
trafficstars

This PR is the same as PR #398, I have just rebased it onto the current next so that there are no conflict. Just some re-tabbings were needed.

I'm doing this as the PR still seems to work well, and it would be a shame to lose the amount of work that @ericbn did.

Svalorzen avatar Oct 18 '24 09:10 Svalorzen

Couple of quick questions while I review this:

  1. Can you provide a screenshot of what the output before/after this change?
  2. Does this pass all the current unit tests?
  3. This is a pretty large change so this feature would need to be behind git config option so users can opt-in to it

scottchiefbaker avatar Oct 18 '24 22:10 scottchiefbaker

@scottchiefbaker fwiw there's a comparison screenshot in the original PR: https://github.com/so-fancy/diff-so-fancy/pull/398#issuecomment-782520586

OJFord avatar Oct 19 '24 00:10 OJFord

I have to admit I'm not really familiar with the codebase, nor I really know Perl. This is mostly a feature that I have wanted for a long time, and after seeing the older PR stay there for a while I just thought I'd give it a spin, and I didn't really do a lot of work to make it run again -- all credit goes to the original author.

AppVeyor seems to say that the build is failing, so I'm assuming some tests do fail; perhaps looking for full lines where partial lines get outputted with this patch. I think those tests did not exist when the patch was first proposed.

If there's anything I can do with my limited knowledge to help this be put in, I can try, but as I said I'm unfamiliar with both the language and the codebase so I'm limited in what I can offer.

Svalorzen avatar Oct 21 '24 10:10 Svalorzen

In fact, I can already attest to a minor bug: if a file changed takes more than one line, the line wraps are incorrect.

Current: image

With PR: image

Svalorzen avatar Oct 21 '24 11:10 Svalorzen