201 lines
4.3 KiB
JSON
201 lines
4.3 KiB
JSON
{
|
||
"summary": "完全掌控 iTerm2:查询窗口/tab/session 结构与内容,并做分屏、焦点、输入、改名、几何操作",
|
||
"useWhen": "用户问终端本身的结构/内容(哪个 tab、几个 session、布局),或要求编排 iTerm2 时",
|
||
"tier": 2,
|
||
"entry": {
|
||
"path": "scripts/iterm-ctl.sh"
|
||
},
|
||
"aliases": [
|
||
"iterm-ctl"
|
||
],
|
||
"commands": [
|
||
{
|
||
"name": "info",
|
||
"summary": "总览:窗口/tab/session 结构"
|
||
},
|
||
{
|
||
"name": "tree",
|
||
"summary": "树状结构"
|
||
},
|
||
{
|
||
"name": "ids",
|
||
"summary": "列出 id"
|
||
},
|
||
{
|
||
"name": "where",
|
||
"summary": "当前焦点位置"
|
||
},
|
||
{
|
||
"name": "cur",
|
||
"summary": "当前 session"
|
||
},
|
||
{
|
||
"name": "focus",
|
||
"summary": "切焦点"
|
||
},
|
||
{
|
||
"name": "split",
|
||
"summary": "分屏"
|
||
},
|
||
{
|
||
"name": "cols",
|
||
"summary": "多栏布局"
|
||
},
|
||
{
|
||
"name": "resize",
|
||
"summary": "调尺寸"
|
||
},
|
||
{
|
||
"name": "fullscreen",
|
||
"summary": "全屏/取消"
|
||
},
|
||
{
|
||
"name": "send",
|
||
"summary": "向 session 发送文本"
|
||
},
|
||
{
|
||
"name": "key",
|
||
"summary": "发送按键"
|
||
},
|
||
{
|
||
"name": "capture",
|
||
"summary": "读屏幕内容"
|
||
},
|
||
{
|
||
"name": "profiles",
|
||
"summary": "列出 profile"
|
||
},
|
||
{
|
||
"name": "scrollback",
|
||
"summary": "读/改 iTerm2 各 profile 的回滚缓冲(unlimited 或行数)"
|
||
},
|
||
{
|
||
"name": "tab-list",
|
||
"summary": "列出 tab"
|
||
},
|
||
{
|
||
"name": "tab-new",
|
||
"summary": "新建 tab"
|
||
},
|
||
{
|
||
"name": "tab-select",
|
||
"summary": "切 tab"
|
||
},
|
||
{
|
||
"name": "tab-close",
|
||
"summary": "关 tab"
|
||
},
|
||
{
|
||
"name": "win-list",
|
||
"summary": "列出窗口"
|
||
},
|
||
{
|
||
"name": "win-new",
|
||
"summary": "新建窗口"
|
||
},
|
||
{
|
||
"name": "title",
|
||
"summary": "改标题"
|
||
},
|
||
{
|
||
"name": "sleep",
|
||
"summary": "等待"
|
||
},
|
||
{
|
||
"name": "id",
|
||
"summary": "取窗格 session id(跨调用前先锚定)"
|
||
},
|
||
{
|
||
"name": "split-id",
|
||
"summary": "按 session id 分屏"
|
||
},
|
||
{
|
||
"name": "focus-id",
|
||
"summary": "按 session id 聚焦"
|
||
},
|
||
{
|
||
"name": "send-id",
|
||
"summary": "按 session id 发送文本并回车"
|
||
},
|
||
{
|
||
"name": "send-raw-id",
|
||
"summary": "按 session id 发送文本(不回车)"
|
||
},
|
||
{
|
||
"name": "key-id",
|
||
"summary": "按 session id 发送按键"
|
||
},
|
||
{
|
||
"name": "capture-id",
|
||
"summary": "按 session id 读屏幕内容"
|
||
},
|
||
{
|
||
"name": "wait",
|
||
"summary": "轮询窗格直到出现指定字样"
|
||
},
|
||
{
|
||
"name": "wait-id",
|
||
"summary": "按 session id 轮询直到出现指定字样"
|
||
},
|
||
{
|
||
"name": "close-id",
|
||
"summary": "按 session id 关闭窗格"
|
||
},
|
||
{
|
||
"name": "wait-idle",
|
||
"summary": "等目标空闲(命令回提示符 / TUI 屏幕静止),可选随后发送单行文本(前台阻塞)"
|
||
},
|
||
{
|
||
"name": "idle-state",
|
||
"summary": "一次性读目标忙闲:job/prompt/屏幕指纹"
|
||
},
|
||
{
|
||
"name": "send-when-idle",
|
||
"summary": "后台守候:目标空闲后把它发进去并回车;start/status/logs/stop(台账与 liveness 在 status 的 as_of)",
|
||
"destructive": false,
|
||
"writes": true
|
||
},
|
||
{
|
||
"name": "batch",
|
||
"summary": "从 stdin 一次连接顺序执行多条命令"
|
||
}
|
||
],
|
||
"lifecycle": [
|
||
"start",
|
||
"status",
|
||
"stop",
|
||
"logs"
|
||
],
|
||
"liveness": "as_of",
|
||
"errors": [
|
||
"usage",
|
||
"deps",
|
||
"notfound",
|
||
"conflict",
|
||
"timeout",
|
||
"internal"
|
||
],
|
||
"helpListsCommands": true,
|
||
"admin": [
|
||
{
|
||
"path": "scripts/install.sh",
|
||
"summary": "一次性初始化:开 iTerm Python API + 装 iterm2 库(幂等)"
|
||
},
|
||
{
|
||
"path": "scripts/python-library-path.sh",
|
||
"summary": "打印本机 python 库缓存目录"
|
||
},
|
||
{
|
||
"path": "scripts/send-when-idle.sh",
|
||
"summary": "send-when-idle 子命令的后台台账实现(由入口转发;不是独立入口)"
|
||
}
|
||
],
|
||
"publish": {
|
||
"package_repo": "https://gitea.vhkd.top/geekinney/iterm-workspace-ctl.git"
|
||
},
|
||
"catalog": {
|
||
"layer": "core",
|
||
"why": "别的技能建在它上面"
|
||
}
|
||
}
|