delta
delta copied to clipboard
:rocket: Center Column
Hi there!
So I was messing around with the config and noticed that if I do the following:
line-numbers-right-format = "│{nm:^4}-{np:^4}│ "
line-numbers-left-format = " "
This happens:
Basically, the right column starts at the center but due to there being no left column it seems to be skewed right.
Might be more easy to see here:
Maybe there could be a sort of "center-only" config that properly centers the "right" column and discards the left one :thinking:
Or is that something I should be able to achieve on my end?
Delta divides the terminal into two panels and only then starts drawing. The width of these panels is currently always identical, this would have to become user configurable at side_by_side.rs:55.
It would be nice if the max line length of both sides could be checked first. And then use that to decide on the column widths in side-by-side mode. Probably this introduces too much buffering to be feasible, but it would often beneficial to me to have the columns closer together. Especially if there are few changes, on short lines, while using high resolution. A bit CTRL-+/-
does not kill me, but it would be nice to have an option and to decide to just take the performance hit.