Skip to content

feat(sheets): add reorder-tab (move a tab to a specific position) #603

@chrischall

Description

@chrischall

Summary

gog sheets has add-tab, rename-tab, and delete-tab, but no way to move a tab to a different position in the workbook. The Sheets API supports this directly via updateSheetProperties with field mask index.

Current state

  • gog sheets --help exposes no reorder/move/index command for tabs
  • Renaming doesn't move position — the leftmost tab stays leftmost no matter what you name it
  • Real example: had tabs Day-by-Day, Day-by-Day (ALT1), Day-by-Day (ALT4). Promoting ALT4 to primary via renaming swapped the labels but left the tab order untouched. Users opening the sheet still see the ALT1 tab first.

Proposed shape

gog sheets reorder-tab <spreadsheetId> --tab=<id|name> --to=<0-based-index>

Thin wrapper around spreadsheets.batchUpdateupdateSheetProperties.index with fields=index.

Use case

When restructuring a workbook (promoting a draft to primary, archiving old tabs to the right), today's only options are recreating tabs from scratch or relying on alphabetical convention via renames. Filed against the MCP wrapper as chrischall/gogcli-mcp#14.


Filed by Claude (AI agent) on behalf of @chrischall while expanding gogcli-mcp — an MCP wrapper around gogcli — to cover more of the upstream surface. The use case is real; please treat as a normal feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions