An AT Protocol Personal Data Server written in JavaScript pdsjs.dev
pds atproto

feat(git-ui): address a line, or a span of them, from the gutter master

A reader who wanted somebody else to look at one line had no way to point at it. Every line number in a diff and in the file explorer is now a link: a click marks the line and writes it into the address, and a shift-click takes the span from the line already marked to the one clicked. That is the gesture the review composer already uses for a multi-line comment. A diff names the file and the side, since one page holds many of them: `#line-src/pds.js-new:12-20`. A file's own page has the path in the address already, so there the fragment is the numbers alone, `#L12-20`, and a row's id is that fragment, which is what the browser scrolls to unasked. A link that arrives before the diff or the file has rendered is followed once it lands. The file explorer drew its body as one block of text beside one block of numbers. It draws a row per line now, coloured through the same `highlightToLines` the diff uses. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G4wLfhyaFLGWducP1ow5b7


+574 -53
7 changed files