Sheet kit command
editor.preedit
Show an Input Method's Composition
Shows what an input method composes (`text`, its cursor at `cursor` characters, else at its end) at the caret of the cell being typed, underlined, without changing the cell's text or the workbook; with nothing typed it starts typing in the active cell, as a typed character does. Empty, it takes the composition away. Answers whether a cell is being typed.
- Kit
- Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | integer | no | the input method's cursor in it, in characters |
text | string | no | the composition, at most 1000 characters |
Call through sheet_run
sheet_run {
"path": "<file>.xlsx",
"steps": [{ "command": "editor.preedit" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: cursor, text. sheet_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
editing | boolean | no |
Result JSON Schema
{
"additionalProperties": false,
"properties": {
"editing": {
"type": "boolean"
}
},
"type": "object"
}Parameter schema
{
"additionalProperties": false,
"properties": {
"cursor": {
"description": "the input method's cursor in it, in characters",
"type": "integer"
},
"text": {
"description": "the composition, at most 1000 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.