Sheet kit command

editor.insertText

Insert Text at the Caret

Types text at the caret of what is being typed (the cell, or a shape's text); with nothing typed, after the selected shape's text, else in the active cell: after what it holds with the cell left open (append, as inserting a symbol does), or in its place. A checkbox cell refuses it. With typing, only into what is being typed, else nothing (editing false). Answers where the text went.

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

Parameters

Parameters of editor.insertText
NameTypeRequiredDescription
appendbooleannowith nothing typed: after the active cell's text, the cell left open (default: in its place)
textstringnothe text, 1 to 256 characters without control characters
typingbooleanno

Call through sheet_run

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

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

Result

Result of editor.insertText
NameTypeRequiredDescription
editingbooleanno
refusedstringno
shapebooleanno
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "editing": {
      "type": "boolean"
    },
    "refused": {
      "type": "string"
    },
    "shape": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "append": {
      "description": "with nothing typed: after the active cell's text, the cell left open (default: in its place)",
      "type": "boolean"
    },
    "text": {
      "description": "the text, 1 to 256 characters without control characters",
      "type": "string"
    },
    "typing": {
      "type": "boolean"
    }
  },
  "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.