2 ms·
Thanks, that's definitely a feature that could be added. My original thought was that the line numbers in the after file are nearly always what one wants, since
by Myrmornis 7y ago
Thanks, that's definitely a feature that could be added. My original thought was that the line numbers in the after file are nearly always what one wants, since that's the version that your editor will most naturally be displaying. And I wanted to reduce visual clutter. Delta currently displays just the first line number of each diff hunk; not on every line. But that's also something that could be made configurable.
EDIT: In fact an issue was opened for this very recently: https://github.com/dandavison/delta/issues/130 https://github.com/dandavison/delta/issues/130
Ideally, I think that a mouse click in an appropriate location in a terminal emulator window should open the user's editor on the correct line of the correct file.