---
title: "table.moveColumn: Move a table column — Note kit command — Kition"
description: "Moves column `from` to position `to` within a table (from 0), header and alignment included."
canonical: "https://developer.kition.ai/docs/kits/note/commands/table.moveColumn"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/note/commands/table.moveColumn](https://developer.kition.ai/docs/kits/note/commands/table.moveColumn)

# table.moveColumn

**Move a table column.** Moves column `from` to position `to` within a table (from 0), header and alignment included.

- Kit: Note 0.3.0 (Markdown (.md)); reference: [Note kit commands](https://developer.kition.ai/docs/kits/note.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | `integer` | yes | The column to move, from 0. |
| `table` | `integer` | yes | The table's index in the note, from 0 (document order). |
| `to` | `integer` | yes | Where it ends up, from 0. |

## Call through note_run

```text
note_run {
  "path": "<file>.md",
  "steps": [{ "command": "table.moveColumn", "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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `changed` | `boolean` | yes | Whether the note's text changed (false when it already read so). |

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

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