Spreadsheets (.xlsx)
A .xlsx file in a repository opens as a table, on the page and in the terminal, instead of a download link.
- What opens: a file named
.xlsxwhose bytes are a zip of an Office workbook. It shows the sheet names, then the first rows of the first sheet. The sheet list is not tabs: only the first sheet is ever shown, and the page says so. - Limits: the first 200 rows and 30 columns (A to AD) of that sheet. When either is cut, the page says so and the raw file has the rest. A workbook part that inflates past 16 MB, and any file over the spreadsheet size cap, is not read.
- What a cell shows: its text. A formula shows the value the file cached and is never evaluated. Numbers are right-aligned on the page; booleans read TRUE or FALSE. Dates show the number the file stores (a serial day), not a date: the reader does not interpret number formats. A cell beginning
=,+,-or@is plain text. - Only the first sheet: other sheets are named, not drawn.
- Fallback: a file that is damaged, encrypted, truncated, zip64, or not a workbook keeps the page's source view, and the terminal's note, with a sentence saying why. Nothing is written or unpacked.
- Web:
src/web/render/xlsx.ts; the page's table is a hairline table with no box around it. - Terminal: open the file in a repository's workspace (
src/tui/screens/workspace_sheet.ts). It draws the first sheet as a table with column letters A, B, C… above, the sheet names in the first rows;j/kscroll,/searches. It is read only:esays the file is not editable here.