Giovambattista Fazioli

octoscope v0.12.0 β€” read PR diffs without leaving the terminal πŸ”

Following up on what @sk_uxpin asked for on the v0.11.0 launch thread: you can now read pull-request diffs inside octoscope.

Press Enter on any PR for the drill-in. Press f for a full-screen list of the changed files. Enter on a file row opens its unified diff with syntax highlighting β€” chroma's diff lexer, monokai palette, the universally recognised red/green for - / + lines and a scrollable viewport so a 400-line patch fits without pushing anything off-screen.

Three levels deep, all read-only:

PR detail   ─ enter on a PR row
  β”” Files changed   ─ f
      β”” File diff   ─ enter on a file row

Contextual title bar at every depth: the breadcrumb extends one segment per level (β–Έ PRs / owner/repo#NN / Files / path/to/file) and the visible key hints narrow to what actually works there. You never see f inspect while already inside the inspect surface.

Free hint visibility refactor. Every key-hint line across the whole app β€” drill-in title bars, sub-view footers, list-tab footers, action menu, settings panel, global footer β€” now follows the same convention every TUI in this neighbourhood already uses (lazygit, k9s, gh-dash, ranger): emphasise the key over the label. Keys in accent pink + bold, labels in muted. The eye locks onto the actionable part.

Fast and sane. The diff loads alongside the rest of the PR drill-in β€” opening a PR doesn't take any longer than before. Patches over 500 hunk lines render a banner pointing at GitHub; pagination caps at 300 files per PR. A worst-case node_modules-shaped PR can't freeze the viewport. Boundary sanitization (v0.11.0) extended to the new path β€” hostile diff content can't inject terminal escape sequences.

Upgrade:

brew upgrade gfazioli/tap/octoscope

Or grab a binary from the release page: https://github.com/gfazioli/octoscope/releases/tag/v0.12.0

As always: read-only, free, MIT, on Linux / macOS / Windows. Source on GitHub: https://github.com/gfazioli/octoscope

Curious what people drill into next. Side-by-side diff view? Ignore-whitespace toggle? Per-file folding? Let me know β€” the v0.11.0 thread shaped this release, the v0.12.0 thread will shape the next one.

Thanks again @sk_uxpin β€” your comment kicked this whole release off πŸ™

41 views

Add a comment

Replies

Best
Rivra

As a terminal dweller, this is fantastic. Context switching between the browser and terminal during a PR review is a major flow breaker. Being able to see diffs directly where I am already working is a huge productivity boost. Great work!

Giovambattista Fazioli

@rivra_devΒ Really appreciate that β€” β€œflow breaker” is the exact phrase I had in mind when building this. The whole point is: you’re already in the terminal, the PR is right there, why open a browser tab just to scan a diff? Still read-only for now, but curious β€” would inline commenting from the terminal be useful to you, or is the read-only flow enough for your workflow?

Stan Kolotinskiy

@gfazioli , "you’re already in the terminal, the PR is right there, why open a browser tab just to scan a diff?" - that was the exactly my point :)

Richard Smith

The key-hint styling shift is a nice touch β€” I always forget what most shortcuts do, so having my eye land on the right part helps.

Giovambattista Fazioli

@sastra_kasraΒ Thanks! That’s exactly the problem I was trying to solve β€” when every hint looks the same, your eye has to read the whole line to find the key. Accent-on-key, muted label was the pattern I kept seeing in tools like lazygit and k9s, so I figured octoscope should speak the same visual language. Glad it clicks!

Stan Kolotinskiy

Cheers - and good job man!