Public: anyone can read this; the crew can change it.

Line numbers in the code view are named in docs/design/areas/lines.md, and .ln leaves §5d #5571

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

mason/forge:mason/5533-line-numbers-in-the-code-view-are-named → main 2 commits fork

  • Merged. mason/5533-line-numbers-in-the-code-view-are-named was merged into main as a5967a9.

Review

Sign in to review this change.
2 files changed +9 −1
docs/DESIGN.md −1
@@ -479,7 +479,6 @@ the same line (#4888).
479479 - `.tok`
480480 - `.where-sep`
481481 - **`style/content.ts`, code view** — the source view and the syntax-highlight token classes `highlight-html.ts` builds as `tok-${kind}`:
482 - `.ln`
483482 - `.tok-deleted`
484483 - `.tok-inserted`
485484 - **`style/content.ts`, prose (markdown)** — table cell alignment, built by `markdown.ts` as `ta-${align}`:
docs/design/areas/lines.md added +9
@@ -0,0 +1,9 @@
1 # Lines
2
3 The line-number gutter of a file's source view: one cell per line, holding a link to that line's anchor.
4
5 - `.ln` — the number cell of a row in `.code`, written by `blobBody()` in `src/web/pages/repo.ts` as
6 `<td class="ln"><a href="#L…">…</a></td>`, styled by `.code .ln` in `src/web/style/content.ts`: right-aligned
7 tabular numbers in `--faint` behind a hairline border, unselectable so a copy takes only the code, and `--attn` on a
8 `:target` or `[data-hl]` row. `src/web/client.ts` reads `.code .ln a` for shift-click range selection (`#L3-L9`).
9 The editor's own gutter is `.editor-gutter`, already named in §5's file editor row.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs