Diff Viewed Enhanced

Get it for macOS

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 source

What 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

Automation PaletteRun any bb automation from the quick palette, without opening the Automations page. Each row names the automation and its project, so typing either name finds it, and selecting it starts the run as its schedule would. Every project's automations are listed in every window, and a paused automation keeps its row. Requires bb 0.42 or later and the bb CLI on the machine running the bb server.4Impromptu UITurn your agent's walls of text into interfaces you can click. Triage a milestone from rows that each carry a drafted comment and Post and close, Post, and Start thread buttons. Split one review comment into several pull requests, each waiting on its own card with its diff until you click Commit, push, and open PR. Find a design by picking from screenshots of the original and its variations, with a note on each. Requires bb 0.43 or later, and needs no account or external service.NewMarkdown EditorEdit a markdown file in the tab you were already reading it in, and save it with Cmd+S. Preview renders the file the way bb renders a chat message, including the images it points at, and Raw gives you the source in an editable pane, with unsaved text carrying between the two. Selecting text in Preview offers an Add to chat button that quotes it into the composer under the file's path. A pencil on markdown files in the changes panel opens the one you are reading a diff of. Every save checks the file's hash first, so an edit an agent made while you were typing gives you a choice between reloading and overwriting instead of a silent clobber. Works on files in a project workspace, on a host, or in a thread's storage. Requires bb 0.43 or later, and needs no account or external service.15Super DiffRead a long diff one concern at a time, with each group explained and notes under the lines a reviewer might misread. Click Generate Super Diff in the Diff tab, and the thread's agent groups the changed files into concerns in place of bb's file list, with a line on what each file's change does. Hover any other line, removed ones included, and click Explain this line for a note written on request. Each file keeps bb's Viewed checkbox, each concern counts its viewed files, and the list offers Regenerate when files change after it was written. Requires bb 0.48 or later; generating sends one message to the thread's agent.New

More in Code & Reviews 59

Work with repositories, builds, changes, pull requests, issues, and reviews.

View all