BaseHalf
All posts

Read the start of a code file on its card

A code file on a BaseHalf canvas shows the start of the file on its card. You can look up a value there without opening Card Detail.

On Thursday afternoon the Harbor Desk was loading paper before the 17:30 ferry rush. The front desk asked which width the receipt printer takes. That setting lives in receipt-printer.json, a printer config we keep in the same folder as the evening brief.

I opened the folder in BaseHalf 0.7.0. Three cards were on the canvas: a leftover counter sign draft, the evening brief, and receipt-printer.json. The JSON file is a code file, not a Markdown note, so the card showed the start of the file, with line numbers. I could read "paper_width_mm": 80 on the card itself. The rest of the file continued below the edge of the card. I did not open Card Detail.

A BaseHalf canvas titled 2026-11-18-pm-code-preview, with Counter sign draft, Thursday evening brief, and receipt-printer.json in a row. The JSON card shows the start of the file, including paper_width_mm 80, and more lines run off the bottom of the card.

I wrote the answer into the evening brief, on its card: the printer takes 80 mm paper.

The Thursday evening brief card after the answer was written, ending with "The printer takes 80 mm paper." The receipt-printer.json card still shows paper_width_mm 80.

Then I listed receipt-printer.json in the brief's upstream, so the brief keeps the file it drew on. A line appeared between the two cards.

The same canvas after the brief lists receipt-printer.json as upstream, with a connection line between the JSON card and the evening brief.

Notes are different: a Markdown note is rendered on its card. Text and code files show the start of the file. I only needed a number from the top of a JSON config, and the card was enough. The canvas and cards docs describe what each kind of card shows.