Skip to content

sheets: add a fill / copy-paste primitive (copyPaste/autoFill batchUpdate) #661

Description

@chrischall

Summary

There's no way to copy a range's formulas/format down or across with relative-reference adjustment. gog sheets copy is sheet-level; gog sheets raw is read-only (Spreadsheets.Get); gog sheets batch-update only writes value ranges. Filling per-row formulas down a column currently requires inlining every fully-spelled-out formula via large value writes — high-token and error-prone.

Ask

Add a range copy/fill subcommand mapping to the Sheets API's spreadsheets.batchUpdate:

gog sheets copy-paste <spreadsheetId> <sourceRange> <destRange> [--type=NORMAL|FORMULA|FORMAT|VALUES|...] [--transpose]
# or
gog sheets fill <spreadsheetId> <sourceRange> <destRange>   # autoFill / PASTE_FORMULA semantics
  • CopyPasteRequest{source, destination, pasteType, pasteOrientation} covers fill-down: copy AP2:AW71AP2:AW120 with PASTE_FORMULA tiles the formulas with relative-ref adjustment.
  • AutoFillRequest{range, useAlternateSeries} covers series autofill.

This turns a multi-call, high-token formula transcription into a single call.


Filed from usage of the gogcli-mcp wrapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions