-
Notifications
You must be signed in to change notification settings - Fork 593
feat(docs): cell-style — set tableCellStyle (backgroundColor) and inline textStyle (bold) on table cells #645
Copy link
Copy link
Open
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Metadata
Metadata
Assignees
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
gog docsexposes no way to apply visual formatting to specific table cells. The underlying Google Docs API does expose this viaupdateTableCellStyle(for cell-level properties likebackgroundColor) andupdateTextStyle(for inline run properties likebold). A wrapper would round out the doc-shaping surface alongside--page-width,--margin-*, table column-widths (#631), etc.Use case
Tag-style badges in header tables of structured documents. For example: a header table where one row names a category and the value cell should carry a stable, consistent colour per category (pale background + bold text) so a reader can scan and immediately see which slice of the org a doc belongs to. Today this requires hand-styling via Drive UI on every doc — a per-doc tax that scales badly.
Proposed surface
A range form would be nice for badge bars:
--row 0 --col 0:3styles three adjacent cells.Underlying API
documents.batchUpdate→updateTableCellStylewithtableCellStyle.backgroundColor.color.rgbColorandtableRange/tableCellLocationdocuments.batchUpdate→updateTextStylewithtextStyle.bold/.italic/.underline/.foregroundColorand a content range spanning the cellWorkaround today
Drive UI styling (manual, doesn't survive find-replace round-trips). No CLI path.
Related