paranext / paranext-core

Electron client, extension host, and C# library for Paranext
https://paranext.github.io/paranext-core/
MIT License
17 stars 2 forks source link

Highlight Diff (Green/Red) on Scrollbar of Compare Versions #1262

Open katherinejensen00 opened 3 weeks ago

katherinejensen00 commented 3 weeks ago

User Story As a user, I want to be able to see where the changes are in the diff at a glance so that I can easily scroll to the sections I care about and know where the biggest changes are.

Description The scrollbar would use green to show where new stuff has been added and red to show where stuff has been removed (when comparing the revision on the left to the revision on the right). The color would appear where the scroll bar needs to be in order to view that change. It would also get bigger proportional to how many lines a change spans (a one line addition will probably look like a green dot on the scollbar (also depending a bit on the size of the file as a whole) while a 10 line addition might appear like a small green column in the scrollbar and an addition of half the file would like a tall green column that takes up about half of the scrollbar.

Implementation idea Describe the work needed for the new improvement.

Sebastian-ubs commented 2 weeks ago

(see screenshots of the compare versions ui here: https://github.com/paranext/paratext-bible-internal-extensions/pull/75)