cmux-config
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecmux-config
cmux-config
Single entry point for editing a user's cmux configuration in
(JSONC). The app watches the file; saving applies
changes immediately, no restart. Legacy is read
only as a fallback for keys absent from .
~/.config/cmux/cmux.json~/.config/cmux/settings.jsoncmux.jsonThree areas, each with a reference:
- Settings — typed preferences under ,
app,terminal,notifications,sidebar,sidebarAppearance,workspaceColors,automation,browser. See the helper below and references/all-keys.md / references/shortcut-actions.md.shortcuts - Customization — structural config: ,
actions,ui.surfaceTabBar.buttons(plus-button click + context menu),ui.newWorkspace,commands,rightSidebar. See references/customize.md.vault - Workspace groups — collapsible anchor-owned sidebar sections via the CLI / socket API and
cmux workspace groupconfig. See references/groups.md.workspaceGroups
编辑用户cmux配置的单一入口,配置文件位于(JSONC格式)。应用会监听该文件;保存后立即生效,无需重启。旧版仅作为中缺失键的 fallback 读取。
~/.config/cmux/cmux.json~/.config/cmux/settings.jsoncmux.json包含三个配置领域,每个领域都有参考文档:
- 设置 —— 属于、
app、terminal、notifications、sidebar、sidebarAppearance、workspaceColors、automation、browser下的类型化偏好设置。可查看下方辅助脚本及references/all-keys.md / references/shortcut-actions.md。shortcuts - 自定义 —— 结构化配置:、
actions、ui.surfaceTabBar.buttons(加号按钮点击+上下文菜单)、ui.newWorkspace、commands、rightSidebar。详见references/customize.md。vault - 工作区组 —— 通过CLI/套接字API和
cmux workspace group配置实现可折叠的锚点所属侧边栏区域。详见references/groups.md。workspaceGroups
Helper script
辅助脚本
Use the bundled helper for every settings/customize read and write. It strips
JSONC comments, writes atomically, and validates keys against the schema. From the
installed skill directory:
bash
./scripts/cmux-settings <subcommand>For brevity below, assume it is on as (e.g.
).
$PATHcmux-settingsexport PATH="$HOME/.claude/skills/cmux-config/scripts:$PATH"| Command | What it does |
|---|---|
| Print the config path. |
| Print the raw file (or parsed JSON). |
| Print value at dotted JSON path. |
| Set value ( |
| Delete key, reverting to the in-app default. |
| List every settings JSON path the app recognizes. |
| Parse the file and flag unknown settings keys. |
| Open |
--file <path>settings.jsonSchema: .
https://raw.githubusercontent.com/manaflow-ai/cmux/main/web/data/cmux.schema.json使用内置辅助脚本进行所有设置/自定义的读写操作。它会去除JSONC注释、原子化写入,并根据 schema 验证键。从已安装的skill目录执行:
bash
./scripts/cmux-settings <subcommand>为简化后续操作,假设该脚本已添加到中,命名为(例如:)。
$PATHcmux-settingsexport PATH="$HOME/.claude/skills/cmux-config/scripts:$PATH"| 命令 | 功能 |
|---|---|
| 打印配置文件路径。 |
| 打印原始文件内容(或解析后的JSON)。 |
| 打印指定点式JSON路径的值。 |
| 设置指定路径的值( |
| 删除指定键,恢复为应用默认值。 |
| 列出应用识别的所有设置JSON路径。 |
| 解析文件并标记未知的设置键。 |
| 在 |
--file <path>settings.jsonSchema地址:。
https://raw.githubusercontent.com/manaflow-ai/cmux/main/web/data/cmux.schema.jsonWorkflow
工作流程
- If the user named a setting in plain English, look it up first:
.
cmux-settings list-supported | rg -i '<keywords>' - Make the smallest edit (settings/customize via the helper; groups via the
CLI in references/groups.md).
cmux workspace group - Verify by surface:
- Typed settings: read back () and
cmux-settings get <path>.cmux-settings validate - Customization (,
actions,ui.*,commands,vault): read back the exact key (rightSidebar) and confirm the file still parses (cmux-settings get <path>). Do NOT rely oncmux-settings dump --no-commentshere: it skips structural sections, so a typo likevalidatepasses validation yet cmux ignores it. Check the key against references/customize.md.ui.surfaceTabbar.buttons - Groups: (the settings validator does not recognize
cmux workspace group list).workspaceGroups
- Typed settings: read back (
- Tell the user it auto-reloaded on save. No app restart. Revert with
.
cmux-settings unset <key>
- 如果用户用普通英文提及某个设置,先通过以下命令查找:。
cmux-settings list-supported | rg -i '<keywords>' - 进行最小化修改(设置/自定义通过辅助脚本;工作区组通过references/groups.md中的CLI)。
cmux workspace group - 通过以下方式验证:
- 类型化设置:读取返回值()并执行
cmux-settings get <path>。cmux-settings validate - 自定义配置(、
actions、ui.*、commands、vault):读取精确键值(rightSidebar)并确认文件仍可解析(cmux-settings get <path>)。请勿依赖cmux-settings dump --no-comments命令:它会跳过结构化区域,因此像validate这样的拼写错误会通过验证,但cmux会忽略该配置。请对照references/customize.md检查键名。ui.surfaceTabbar.buttons - 工作区组:执行(设置验证器不识别
cmux workspace group list)。workspaceGroups
- 类型化设置:读取返回值(
- 告知用户保存后配置会自动重载,无需重启应用。可通过恢复配置。
cmux-settings unset <key>
Rules
规则
- Only edit . Never edit
cmux.jsonunless asked; it is legacy.settings.json - Never tell the user to restart cmux to apply a change; the watcher reloads on save.
- Do not blindly overwrite top-level structural sections (,
actions,ui,commands,vault); they hold hand-tuned non-settings config.rightSidebar - Color values are ; opacities are
#RRGGBB.0..1 - Shortcut action ids must match the schema enum; look them up in references/shortcut-actions.md before binding.
- Do not run a tagged app reload for config-only or skill-only changes.
- For workspace groups prefer CLI/socket operations over editing session JSON, and preserve anchor semantics (see references/groups.md).
- 仅编辑。除非用户要求,否则绝不编辑
cmux.json;它属于旧版配置。settings.json - 绝不告知用户需要重启cmux才能应用更改;文件监听器会在保存时自动重载配置。
- 不要盲目覆盖顶层结构化区域(、
actions、ui、commands、vault);这些区域包含手动调整的非设置类配置。rightSidebar - 颜色值格式为;透明度值范围为
#RRGGBB。0..1 - 快捷键操作ID必须匹配schema枚举值;绑定前请在references/shortcut-actions.md中查找。
- 仅针对配置或skill的更改,无需触发标记的应用重载。
- 对于工作区组,优先使用CLI/套接字操作而非编辑会话JSON,并保留锚点语义(详见references/groups.md)。