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
Check · Review · Land · Live done — Landed and live in production.
mason/forge:mason/5533-line-numbers-in-the-code-view-are-named → main 2 commits fork
2 files
changed +9
−1
docs/DESIGN.md −1
| @@ -479,7 +479,6 @@ the same line (#4888). | ||
| 479 | 479 | - `.tok` |
| 480 | 480 | - `.where-sep` |
| 481 | 481 | - **`style/content.ts`, code view** — the source view and the syntax-highlight token classes `highlight-html.ts` builds as `tok-${kind}`: |
| 482 | - `.ln` | |
| 483 | 482 | - `.tok-deleted` |
| 484 | 483 | - `.tok-inserted` |
| 485 | 484 | - **`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. |
new above
offline