Diff Viewed Enhanced
See how much of a long diff you've read, with a viewed count beside bb's own Viewed checkboxes and the same marks on GitHub. The changes panel toolbar counts the files you have checked, such as 3/6 viewed, across every file in the range. On a thread with an open pull request, checking a file in bb marks it viewed on GitHub, and a file marked viewed on GitHub is checked in bb. A file with edits you have not pushed shows a Local icon until a push makes its diff match the pull request's. Requires bb 0.47 or later, and GitHub sync needs the gh CLI signed in.
Overview
View sourceWhat you get
- A count in the changes panel toolbar, such as 3/6 viewed, of the files you have checked with bb's own Viewed checkbox, across every file in the range.
- On a thread with an open pull request, the same marks as GitHub's Viewed boxes, both ways. Check a file in bb and it is viewed on GitHub; mark it on GitHub and it is checked in bb.
- A Local icon on a file whose diff differs from the pull request's, such as one with edits you have not pushed. Its mark goes to GitHub once a push makes the diffs match.
How it works
bb keeps the Viewed marks. This plugin reads them to count, and syncs them with GitHub using your gh sign-in: at most one query for the pull request's files when the panel opens, the window regains focus, or a checkbox changes, and one call for each mark that changed.
Requirements
bb 0.47 or later. GitHub sync needs gh signed in, and can be turned off with the Sync with GitHub setting.
More from Daniel Bachhuber
More in Code & Reviews 59
Work with repositories, builds, changes, pull requests, issues, and reviews.


