Feature request: add side-by-side diffing
I stumbled upon this tool coming from a Gerrit code review experience. I have always liked to have a side-by-side diff. That is why in https://github.com/umputun/revdiff/pull/424, I have proposed some code changes to accomplish this.
Let's first see if we want to have this feature included in this project before I address the review comments.
I decided not to take side-by-side into revdiff.
the issue describes a preference for the layout, not a problem the current view fails on. The whole tool is built around annotating lines in context, and side-by-side works against that. The old line of a paired row has no cursor position, so it can't be annotated until . expands the region, and that drops the two-column alignment for exactly the lines under discussion. A region with a note on a paired old line always opens that way, and notes on removed lines are common when an agent preloads annotations.
the other half is the cost. The mode gives a second meaning to the hidden-line logic that cursor movement, search, hunk navigation and annotation jumps all go through, and collapsed, compact, wrap and word-diff each have to account for it. Both review rounds on #424 were mostly about those interactions, and the main problem in round 2 was round 1's issues coming back through v. That is code I would have to keep in sync with every future change to navigation or rendering.
if you hit a concrete problem that the unified view with word-diff (W) does not handle, pls open an issue describing it and I'll look at it again from that side. Closing this and #424. Thx for the work on it.