Sheet kit command

editor.contextMenu

Right-Click the Grid

A right-click on the grid at document point (x, y), as the editor's right-click menus do: enters what is being typed, then selects the cell, row or column heading pressed (unless it is already selected) or the whole sheet (the corner). Answers which menu shows: cell, rows, cols, all, or null (an outline button).

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

Parameters

Parameters of editor.contextMenu
NameTypeRequiredDescription
xnumberno
ynumberno

Call through sheet_run

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

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

Result

Result of editor.contextMenu
NameTypeRequiredDescription
targetnull | "cell" | "rows" | "cols" | "all"no
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "target": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "enum": [
            "cell",
            "rows",
            "cols",
            "all"
          ],
          "type": "string"
        }
      ]
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "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.