Sheet kit command

editor.editText

Edit the Text Being Typed

The text keys of the cell being typed that hold Cmd: `selectAll` selects its text, `undo` takes back what was typed since the typing began (still typing), `copy` answers the selected text and `cut` takes it out too, `paste` types `text` over the selection (line breaks kept). Never changes the workbook or its undo history. With no cell being typed it does nothing and answers `editing: false`.

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

Parameters

Parameters of editor.editText
NameTypeRequiredDescription
action"selectAll" | "undo" | "copy" | "cut" | "paste"nowhat to do
textstringnowhat `paste` types, at most 32767 characters

Call through sheet_run

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

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

Result

Result of editor.editText
NameTypeRequiredDescription
editingbooleanno
textstringno
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "editing": {
      "type": "boolean"
    },
    "text": {
      "type": "string"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "action": {
      "description": "what to do",
      "enum": [
        "selectAll",
        "undo",
        "copy",
        "cut",
        "paste"
      ],
      "type": "string"
    },
    "text": {
      "description": "what `paste` types, at most 32767 characters",
      "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.