Note kit command

table.insertColumn

Insert a table column

Inserts a column at `at` (from 0; one past the last appends) with an optional header and alignment; every row gets an empty cell there.

Kit
Note 0.3.0 (Markdown (.md))
Changes the document
yes

Parameters

Parameters of table.insertColumn
NameTypeRequiredDescription
align"left" | "center" | "right" | "none"noThe new column's alignment.
atintegeryesWhere the new column goes, from 0; one past the last appends.
headerstringnoThe new column's header.
tableintegeryesThe table's index in the note, from 0 (document order).

Call through note_run

text
note_run {
  "path": "<file>.md",
  "steps": [{ "command": "table.insertColumn", "params": { "at": <integer>, "table": <integer> } }]
}

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

Result

Result of table.insertColumn
NameTypeRequiredDescription
changedbooleanyesWhether the note's text changed (false when it already read so).
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "changed": {
      "description": "Whether the note's text changed (false when it already read so).",
      "type": "boolean"
    }
  },
  "required": [
    "changed"
  ],
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "align": {
      "description": "The new column's alignment.",
      "enum": [
        "left",
        "center",
        "right",
        "none"
      ],
      "type": "string"
    },
    "at": {
      "description": "Where the new column goes, from 0; one past the last appends.",
      "type": "integer"
    },
    "header": {
      "description": "The new column's header.",
      "type": "string"
    },
    "table": {
      "description": "The table's index in the note, from 0 (document order).",
      "type": "integer"
    }
  },
  "required": [
    "at",
    "table"
  ],
  "type": "object"
}

Generated from kition-sdk packages/script/kits/note.ts and the kit itself (kition-note@69e14d9). As data: commands.jsonl.