Get it for macOS

Improves BB's Diff tab with a folder tree beside the file list: file counts and +/- per folder, sticky folders, Tree or Flat view, compact folders, a view synced with the list, and your recent commits in the scope picker. It works through the tab's own filter, so BB's search, Viewed marks, split view and Add to chat work as before. Requires BB 0.48 or later; it finds the Diff tab by its page structure, so a BB update may need a plugin update.


Overview

View source

Diff Plus improves BB's Diff tab with a folder tree beside the file list, plus a few views that make a large change quicker to find your way around. It adds to the tab: nothing of BB's is replaced, and it doesn't rebuild features BB already has.

Features

  • Folder tree beside the file list
    • File count and +/- per folder, so you see where a change lands
    • Click a folder or file to show only it; click again, or Changes, for everything
    • Click a folder's icon to open or close it; one button opens or closes them all
  • Sticky folders: open folders stay pinned at the top as you scroll through them
  • File icons and git letters: A added, M modified, D deleted, R renamed; a coloured dot per folder
  • Tree or Flat view: folders, or every file on one row with its folder beside it
  • Compact folders: a folder holding only one folder shares its row
  • Synced view: the tree in the same order as the file list
    • Scroll sync: the tree follows the list as you scroll
    • Visible indicator lines: a bar beside the files on screen
  • Recent commits: your last 10, 20 or 50 commits in the scope picker, even merged ones (see below)
  • Follows the tab: its scope and its Filter files menu; rows the path filter matches are tinted
  • Remembers your place: open folders, the picked row and your place in the list come back after you open a file
  • Fits any width: drag the tree's edge to resize it; in a narrow panel or the phone drawer it sits above the list

Every option is configurable, from the folder button in the tab's toolbar and the view button beside Changes.

Works with BB's Diff tab

  • Clicks filter through the tab's own filter box
  • BB's search, filters, Viewed checkboxes, split view and "Add to chat" work as before
  • The folder button in the tab's toolbar turns the tree off

Recent commits and the merge base

BB's scope picker only lists commits made since the checkout's merge base, so commits that are already merged never show. Diff Plus works around that:

  • Picking a recent commit moves the checkout's merge base back far enough for BB to list that commit
  • The merge base is BB's own setting for the checkout, the one its base branch picker sets; git itself is never changed
  • While it is moved, every thread on that checkout sees it: All changes, Committed and the branch's git status count those commits too
  • It is put back when you pick any other scope, close the picker without picking, or the plugin stops or starts
  • Each move and restore is logged (bb plugin logs diff-plus)
  • Don't want this? Set Recent commits to Off in the folder button's menu

Inspiration

VS Code: the Explorer tree, sticky scroll, compact folders, file icons and git decoration letters.

Requirements

  • BB 0.48 or later
  • BB has no plugin slot in the Diff tab yet, so the tree finds it by its page structure; a BB update may need a plugin update

Maintenance

  • Releases follow semver
  • Kept up to date with BB releases until BB supports these features natively
  • Feature requests and bug reports are welcome: open an issue

Credits

File icons from vscode-icons, CC BY-SA 4.0.

More from nfour

Chat DockWrite your next message beside the diff, file or tab you are reading: the composer moves into the right panel while it is open. Your draft and the cards above the box (running commands, child threads, questions) move with it and go back under the timeline when you close the panel. Dock it as a strip under whichever tab is open, or as a Chat tab of its own that splits and drags like any other. Split chat panes keep a composer each, and on a phone it docks at the bottom of the panel drawer. It moves BB's own page elements, which are not a documented interface, so a BB update may need a plugin update. Requires BB 0.48 or later.NewGuest ViewShare one thread with someone who has no BB account: they follow it live in a browser and suggest prompts that you approve. Guests see your messages and the agent's replies as they happen, with tool work shown only as counts such as "Ran 3 commands, edited 2 files". Each suggestion waits in a card above your composer, where you choose Use, Copy or Dismiss, so nothing a guest writes reaches the agent until you send it. The card also shows who is connected, kicks a guest, ends the link, and sets how long it lasts (4 hours by default). The link is a free Cloudflare quick tunnel, so the thread's text passes through Cloudflare and anyone with the link can watch; it needs the separate cloudflared program (on Linux the plugin can download a pinned, checksummed copy when you ask), and it requires BB 0.48 or later.NewPinned TurnsKeep the question you are reading under and the agent's last answer in view while you scroll a long thread. Click either one to jump back to it; the page's address and the back button stay as they were. A counter such as 7/23 shows which turn you are on, and a turn that is still running pulses. A Pinned turns submenu in the thread's actions menu switches the bar and each option on or off. It reads BB's timeline layout, which is not a documented interface, so a BB update may need a plugin update. Requires BB 0.48 or later.New

More in Code & Reviews 60

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

View all