Design kit command
comment.open
Open comment
Opens a comment thread and zooms or centres the view on it.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- no
- Acts on
id(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
author | string | no | |
id | integer | string | no | an id; one of several alternative parameters |
ids | any[] | no | read by the command beside its listed parameters |
link | any | no | one of several alternative parameters |
maxLines | number | no | read by the command beside its listed parameters |
minSize | number | no | read by the command beside its listed parameters |
orphans | boolean | no | read by the command beside its listed parameters |
view | "fit" | "center" | "keep" | no |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "comment.open" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: author, id, ids, link, maxLines, minSize, orphans, view. design_run answers the step’s result in completed[i].result.
Result
Result JSON Schema
json
{}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"author": {
"type": "string"
},
"id": {
"description": "an id; one of several alternative parameters",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-khp-types": [
"CommentThread"
]
},
"ids": {
"description": "read by the command beside its listed parameters",
"type": "array"
},
"link": {
"description": "one of several alternative parameters"
},
"maxLines": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"minSize": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"orphans": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
},
"view": {
"enum": [
"fit",
"center",
"keep"
],
"type": "string"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.