Note kit command

table.moveRow

Move a table row

Moves body row `from` to position `to` within a table (body rows count from 1).

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

Parameters

Parameters of table.moveRow
NameTypeRequiredDescription
fromintegeryesThe body row to move, from 1.
tableintegeryesThe table's index in the note, from 0 (document order).
tointegeryesWhere it ends up, from 1.

Call through note_run

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

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

Result

Result of table.moveRow
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": {
    "from": {
      "description": "The body row to move, from 1.",
      "type": "integer"
    },
    "table": {
      "description": "The table's index in the note, from 0 (document order).",
      "type": "integer"
    },
    "to": {
      "description": "Where it ends up, from 1.",
      "type": "integer"
    }
  },
  "required": [
    "from",
    "table",
    "to"
  ],
  "type": "object"
}

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