Skip to content

docs(design): plan cell formatting and cell ranges in the sheet editor - #934

Merged
andiwand merged 2 commits into
mainfrom
docs/plan-cell-formatting
Sep 28, 2026
Merged

andiwand merged 2 commits into
mainfrom
docs/plan-cell-formatting

Conversation

@andiwand

@andiwand andiwand commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Stacked on #933.

The plan for the cell-formatting stack, as #893 was for inline formatting. It adds decisions 9 to 12 to docs/design/spreadsheet-editing.md:

  • 9. One setCellStyle op per cell, with the keys of setTextStyle plus fill and align, and how each key is written in .ods and .xlsx.
  • 10. A style edit writes a copy (a fresh automatic table-cell style, or a new font/fill/xf only where no equal one exists), never the shared style it read.
  • 11. Sheet::set_cell_style(column, row, TableCellStyle, TextStyle).
  • 12. A selection is a rectangle that the pin is one corner of. The editor formats every cell in it, and a fill also sets --odr-dark-fill.

The steps that follow, each its own PR on top of this one:

  1. The xlsx reader reads a solid fill from fgColor, theme colours with tint, italic, underline, strikethrough and left and right alignment.
  2. Sheet::set_cell_style and setCellStyle for .ods.
  3. setCellStyle for .xlsx.
  4. The sheet editor: range selection and formatting.
  5. The bindings.

andiwand and others added 2 commits September 28, 2026 20:21
The plan for the stack that follows: the xlsx reader reads what the writer
will write, a setCellStyle op writes into .ods and .xlsx, the sheet editor
formats a rectangle of cells, and the bindings take Sheet::set_cell_style.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NXnz6EZY8YpyiyyE1GpsWy
HorizontalAlign has no justify, and a new value would move the ordinals the
bindings map.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NXnz6EZY8YpyiyyE1GpsWy
@andiwand
andiwand force-pushed the docs/plan-cell-formatting branch from 1f273cf to 5fbc691 Compare September 28, 2026 18:21
@andiwand
andiwand merged commit a428dff into main Sep 28, 2026
25 checks passed
@andiwand
andiwand deleted the docs/plan-cell-formatting branch September 28, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant