Sheet kit command

edit.autoFill

AutoFill

Extends a source range over a target range as the fill handle does: continues series (1, 2, 3…; months), with `extend` a single number counting on too (5, 6, 7, as a person's fill handle drag does), or copies values or formats only.

Kit
Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
Changes the document
yes

Parameters

Parameters of edit.autoFill
NameTypeRequiredDescription
mode"series" | "extend" | "copy" | "formats" | "values"no
sourcestringnolike A1:A2
targetstringnolike A1:A10

Call through sheet_run

text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "edit.autoFill" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: mode, source, target. sheet_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "mode": {
      "enum": [
        "series",
        "extend",
        "copy",
        "formats",
        "values"
      ],
      "type": "string"
    },
    "source": {
      "description": "like A1:A2",
      "type": "string"
    },
    "target": {
      "description": "like A1:A10",
      "type": "string"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (sheet_commands through @kition/[email protected], built from KitionAI/kition-sheet@82f13b2). As data: commands.jsonl.