cmux-keyboard-shortcuts
Skill này làm gì
Skill này giúp bạn tùy chỉnh phím tắt bàn phím trong ứng dụng cmux. Nó biến thói quen làm việc của bạn thành các thiết lập phím tắt và lưu chúng vào file cấu hình cmux.
Khi nào nên dùng
- ✓Khi bạn muốn gán lại, xóa hoặc đặt lại một phím tắt cmux.
- ✓Khi bạn muốn một bố cục phím tắt giống tmux, Vim, iTerm hoặc công cụ quen thuộc khác.
- ✓Khi bạn muốn agent rà soát phím tắt cmux hiện tại trước khi thay đổi.
Liên kết skill
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-keyboard-shortcuts/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể đổi phím tắt cmux của tôi để hoạt động giống tmux không? Đó là thứ tôi đã quen dùng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc các thiết lập phím tắt hiện tại, đề xuất một bố cục gọn, áp dụng các thay đổi bạn chọn và kiểm tra xem file cấu hình vẫn đọc đúng không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
cmux-keyboard-shortcuts
Turn a user's workflow preferences into cmux shortcut bindings in ~/.config/cmux/cmux.json: guide, propose compact templates, apply the selected changes, and confirm the config parses with recognized keys.
Contributor rule: adding a new shortcut
Every new cmux-owned keyboard shortcut must be added to Sources/KeyboardShortcutSettings.swift, visible and editable in Settings > Keyboard Shortcuts, supported as shortcuts.bindings.<actionId> in ~/.config/cmux/cmux.json, and documented in web/app/[locale]/(landing)/docs/keyboard-shortcuts/page.tsx and the configuration docs. All four, not a subset.
Prerequisites
- Work from a cmux checkout or worktree root when possible.
- Use
skills/cmux-settings/scripts/cmux-settingsfor every read/write. It reads JSONC, writes atomically, and validates JSON plus recognized settings keys. - Action IDs:
skills/cmux-settings/references/shortcut-actions.md. Current defaults:web/data/cmux-shortcuts.tsorSources/KeyboardShortcutSettings.swift.
if [[ -z "${CMUX_SETTINGS:-}" ]]; then
root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
for candidate in \
"$root/skills/cmux-settings/scripts/cmux-settings" \
"${CODEX_HOME:-$HOME/.codex}/skills/cmux-settings/scripts/cmux-settings" \
"$HOME/.agents/skills/cmux-settings/scripts/cmux-settings"; do
[[ -x "$candidate" ]] && CMUX_SETTINGS="$candidate" && break
done
[[ -n "${CMUX_SETTINGS:-}" ]] || {
echo "cmux-settings helper not found; run from a cmux checkout or install cmux-settings" >&2
exit 1
}
fi
Shortcut model
- Setting path:
shortcuts.bindings.<actionId>. - Single stroke:
"cmd+b". - Chord:
["ctrl+b","c"]. The first stroke needs a modifier unless the key is Space. The second stroke can be bare. - Unbind: prefer
nullfor explicit unbinds."","none","clear","unbound", and"disabled"are accepted aliases, butnullis the clearest JSON value and matches the templates below. selectSurfaceByNumber,selectWorkspaceByNumberandfocusPaneByNumbermust use a digit from 1 to 9.cmd+1means the fullcmd+1throughcmd+9family.showHideAllWindowsis the only system-wide shortcut. It cannot be a chord, requires modifiers, and may be rejected by macOS if reserved.globalSearchis application-scoped and only fires while cmux is active.showHideAllWindowsalso requires Settings > Global Hotkey > Enable System-Wide Hotkey. The binding can validate incmux.jsonwhile the feature is disabled, so warn the user to enable that setting before reporting the shortcut as usable.unsetdeletes acmux.jsonoverride. It does not clear shortcut changes saved through the Settings UI/UserDefaults. If the user asks for true built-in defaults, tell them to use Settings > Keyboard Shortcuts > Reset Default Shortcuts after clearing file-managed overrides, then verify in the app. ForshowHideAllWindows, use Settings > Global Hotkey to restore the shortcut toctrl+opt+cmd+.because Keyboard Shortcuts > Reset Default Shortcuts intentionally skips the global hotkey.- Saving
cmux.jsonlive reloads. Never tell the user to restart cmux.
Workflow
Classify the request:
- One-off rebind/unbind: map the phrase to an action ID, apply, validate, report previous and new binding.
- Audit: inspect bindings, validate, summarize overrides and unbound shortcuts without writing.
- Reset: clarify file-managed overrides vs true built-in defaults (see the
unsetrule above). - Broad customization: propose 3-5 templates below and ask the user to choose.
- Named style (tmux, Vim, iTerm, browser, agent triage): pick the closest template, show the changed actions and likely collisions, and ask before a bulk apply unless the user already named that template.
Inspect existing config:
"$CMUX_SETTINGS" path "$CMUX_SETTINGS" get shortcuts.bindings 2>/dev/null || printf '{}\n' "$CMUX_SETTINGS" validateSnapshot prior values for every action you will change. A path that was absent reverts with
unset; a path with an existing custom value reverts withset <same-json-value>."$CMUX_SETTINGS" get shortcuts.bindings.focusLeft 2>/dev/null || printf '<absent>\n'Apply only the chosen action paths, then
"$CMUX_SETTINGS" validate."$CMUX_SETTINGS" set shortcuts.bindings.newSurface '["ctrl+b","c"]' "$CMUX_SETTINGS" set short
Câu hỏi thường gặp
Các thiết lập cmux khác của tôi có bị ảnh hưởng không?
Skill chỉ thay đổi các thiết lập phím tắt, rồi kiểm tra rằng file cấu hình vẫn hợp lệ.
Tôi có thể quay lại phím tắt mặc định không?
Có. Skill có thể đặt lại phím tắt về mặc định.
Có những bố cục nào?
Skill có các mẫu như kiểu tmux, kiểu Vim, ưu tiên terminal, ưu tiên trình duyệt, kiểu iTerm và bố cục phân loại agent.
Chi tiết
Mô tả gốc của tác giả
Guide and apply cmux keyboard shortcut customization. Use when the user asks to customize, rebind, unbind, reset, audit, or create shortcut templates for cmux, including tmux-style, Vim-style, terminal-first, browser-heavy, iTerm/Terminal-like, or agent-triage layouts.
repo: manaflow-ai/cmux
Độ phổ biến
- Sao GitHub
- 29k
- Vị trí xếp hạng
- #9800
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cmux-browser
29kCho phép agent của bạn mở website trong cmux, đọc, nhấp và trích xuất thông tin từ khung trình duyệt mà không chiếm tiêu điểm của bạn.
cmux-capture
29kCho phép agent của bạn chụp ảnh màn hình hoặc ghi lại ngắn một cửa sổ cmux, để bạn có bằng chứng thực tế khi cho thấy một thay đổi trực quan hoặc một lỗi.
cmux-cloud-vm
29kCho phép agent của bạn chạy lệnh, khởi động agent lập trình và hiển thị workspace trên các máy cmux Cloud, giữ công việc chạy tiếp sau khi pane đóng.
cmux-cua
29kCho phép agent của bạn thao tác ứng dụng macOS thật qua engine Computer Use của cmux, đọc cây accessibility và nhấp, gõ, cuộn thay bạn.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.