Sheet kit command
select.move
Move Selection
Moves the active cell by rows and columns, optionally extending the selection or jumping to the data edge like Ctrl+arrow, or to the row's first column, the sheet's first cell or the used range's last cell like Home, Ctrl+Home and Ctrl+End; answers the new selection.
- Kit
- Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dc | integer | no | columns to move, negative moves left |
dr | integer | no | rows to move, negative moves up |
extend | boolean | no | |
jump | boolean | no | Ctrl+arrow |
page | boolean | no | |
to | "rowStart" | "sheetStart" | "lastCell" | no | instead of dr and dc: rowStart (Home), sheetStart (Ctrl+Home; below and right of frozen panes) or lastCell (Ctrl+End) |
Call through sheet_run
text
sheet_run {
"path": "<file>.xlsx",
"steps": [{ "command": "select.move" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: dc, dr, extend, jump, page, to. sheet_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
active | string | no | |
selection | string | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"active": {
"type": "string"
},
"selection": {
"type": "string"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"dc": {
"description": "columns to move, negative moves left",
"type": "integer"
},
"dr": {
"description": "rows to move, negative moves up",
"type": "integer"
},
"extend": {
"type": "boolean"
},
"jump": {
"description": "Ctrl+arrow",
"type": "boolean"
},
"page": {
"type": "boolean"
},
"to": {
"description": "instead of dr and dc: rowStart (Home), sheetStart (Ctrl+Home; below and right of frozen panes) or lastCell (Ctrl+End)",
"enum": [
"rowStart",
"sheetStart",
"lastCell"
],
"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.