Agent Skillswarpdotdev/warp › change-keybinding

change-keybinding

GitHub

用于自定义 Warp 终端键盘快捷键的技能。通过编辑 keybindings.yaml 文件,实现重映射、重新绑定或移除默认快捷键。支持跨平台路径识别及严格的按键编码规则,指导用户查找动作名称并生成正确的 YAML 配置。

resources/bundled/skills/change-keybinding/SKILL.md warpdotdev/warp

Trigger Scenarios

用户要求更改或重映射键盘快捷键 用户询问如何修改 Warp 的按键绑定

Install

npx skills add warpdotdev/warp --skill change-keybinding -g -y
More Options

Non-standard path

npx skills add https://github.com/warpdotdev/warp/tree/master/resources/bundled/skills/change-keybinding -g -y

Use without installing

npx skills use warpdotdev/warp@change-keybinding

指定 Agent (Claude Code)

npx skills add warpdotdev/warp --skill change-keybinding -a claude-code -g -y

安装 repo 全部 skill

npx skills add warpdotdev/warp --all -g -y

预览 repo 内 skill

npx skills add warpdotdev/warp --list

SKILL.md

Frontmatter
{
    "name": "change-keybinding",
    "description": "Customize Warp keyboard shortcuts (keybindings, keymappings) by editing the user's keybindings.yaml file. Use when the user asks to remap a key combination, rebind an action, change a shortcut, or remove a default keybinding (e.g. \"change ctrl+space to ctrl+s\", \"rebind the command palette to cmd+p\", \"remove the default for X\")."
}

change-keybinding

Use this skill when the user wants to remap, rebind, or remove a Warp keyboard shortcut.

Keybindings file

User customizations live at:

{{keybindings_file_path}}

This is the exact path Warp reads at launch — it is platform- and channel-specific (e.g. under ~/.warp*/ on macOS, under XDG config dirs like ~/.config/warp-terminal/ on Linux, and under %LocalAppData% on Windows). Use this path verbatim — do not infer a different one from the user's home directory layout. Create the file (and any missing parent directories) if it does not exist.

File format

A flat YAML map of action_namekey_trigger. Action names contain a colon, so they must be quoted:

"workspace:toggle_ai_assistant": ctrl-s
"editor_view:delete_all_left": cmd-shift-A
"workspace:toggle_command_palette": none

Keystroke encoding rules

Triggers use Warp's normalized form — get this exactly right or the binding silently fails to load.

  • Modifiers (in this order when combined): ctrl-alt-shift-cmd-meta-. Cross-platform alias: cmdorctrl- (becomes cmd on macOS, ctrl elsewhere).
  • Letter casing: applies only to single-letter keys. Without shift, the letter is lowercase (ctrl-s). With shift, the letter is uppercase (shift-A, never shift-a). Mixing them is invalid.
  • Special keys: space, enter, escape, tab, backspace, delete, insert, up, down, left, right, home, end, pageup, pagedown, f1f20, numpadenter. Always lowercase, even with shift (ctrl-shift-space, shift-tab — never ctrl-shift-SPACE). Use the literal word space — not " ".
  • Punctuation is the bare character: cmd-=, cmd-,, cmdorctrl-/.
  • Remove a default binding: set the value to the literal string none. The action becomes unbound.

Translate user phrasing into this form: Ctrl+Sctrl-s, Cmd+Shift+Pcmd-shift-P, Ctrl+Spacectrl-space.

Identifying the action

Defaults are compiled into Warp and are not discoverable from the keybindings file on disk. There is no catalog the agent can consult to map a description or current shortcut to an action name. Pick the right strategy based on how the user described the change:

  1. By action name ("set workspace:toggle_command_palette to cmd-p"): the user already gave you the name — write it directly.

  2. By description or current key combo ("rebind the command palette to cmd-p", "change ctrl+space to ctrl+s"): you don't have the action name and cannot reliably guess it. Do not invent one. Direct the user to the keybindings editor (workspace:show_keybinding_settings, default cmd-ctrl-k on macOS; Settings → Keyboard Shortcuts on other platforms) — they can search by description or current shortcut there and either edit the binding in place or share the canonical namespace:action_name so you can write it.

Workflow

  1. Determine which action to remap and the new trigger (see "Identifying the action").
  2. Read the existing keybindings file at {{keybindings_file_path}} if present. Preserve every existing entry — only add or update the one you're changing.
  3. Write the file (creating parent directories if necessary). Make sure the action key is quoted and the value is normalized (see encoding rules).
  4. Tell the user that Warp must be restarted for the change to take effect — the keybindings file is loaded only at app launch, unlike settings.toml which hot-reloads. They can quit with cmd-Q (macOS) or the equivalent on their platform and reopen Warp.

Examples

Remap an existing custom binding by old trigger:

# before
"workspace:toggle_ai_assistant": ctrl-space
# after
"workspace:toggle_ai_assistant": ctrl-s

Remove a default shortcut:

"workspace:toggle_keybindings_page": none

Shift combined with a special key (note the special key stays lowercase):

"workspace:toggle_ai_assistant": ctrl-shift-space

Cross-platform binding using the cmdorctrl- alias (resolves to cmd on macOS, ctrl elsewhere):

"workspace:toggle_command_palette": cmdorctrl-shift-P

Version History

  • 726c1b6 Current 2026-07-24 20:22

Same Skill Collection

.agents/skills/add-feature-flag/SKILL.md
.agents/skills/add-telemetry/SKILL.md
.agents/skills/changelog-draft/SKILL.md
.agents/skills/classify-changelog-pr/SKILL.md
.agents/skills/cross-platform-cloud-verification/SKILL.md
.agents/skills/dedupe-issue-local/SKILL.md
.agents/skills/gui-create-launch-modal/SKILL.md
.agents/skills/gui-integration-test/SKILL.md
.agents/skills/gui-reproduce-bug-report-local/SKILL.md
.agents/skills/gui-settings-ui/SKILL.md
.agents/skills/gui-ui-guidelines/SKILL.md
.agents/skills/logging-and-error-reporting/SKILL.md
.agents/skills/promote-feature/SKILL.md
.agents/skills/remove-feature-flag/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/rust-unit-tests/SKILL.md
.agents/skills/triage-issue-local/SKILL.md
.agents/skills/tui-testing/SKILL.md
.agents/skills/tui-ui-guidelines/SKILL.md
.agents/skills/tui-verify-change/SKILL.md
resources/bundled/mcp_skills/figma/figma-code-connect-components/SKILL.md
resources/bundled/mcp_skills/figma/figma-create-design-system-rules/SKILL.md
resources/bundled/mcp_skills/figma/figma-create-new-file/SKILL.md
resources/bundled/mcp_skills/figma/figma-generate-library/SKILL.md
resources/bundled/mcp_skills/figma/figma-implement-design/SKILL.md
resources/bundled/skills/add-mcp-server/SKILL.md
resources/bundled/skills/create-skill/SKILL.md
resources/bundled/skills/create-tab-config/SKILL.md
resources/bundled/skills/factory-files/SKILL.md
resources/bundled/skills/factory-mcp/SKILL.md
resources/bundled/skills/modify-settings/SKILL.md
resources/bundled/skills/oz-platform/SKILL.md
resources/bundled/skills/pr-comments/SKILL.md
resources/bundled/skills/tab-configs/SKILL.md
resources/bundled/skills/tui-migrate-setup/SKILL.md
resources/bundled/skills/update-tab-config/SKILL.md
resources/bundled/skills/warpctrl/SKILL.md
resources/channel-gated-skills/dogfood/test-warp-ui/SKILL.md
resources/channel-gated-skills/dogfood/triage-vulnerabilities/SKILL.md
resources/channel-gated-skills/dogfood/verify-ui-change-in-cloud/SKILL.md
.agents/skills/gui-onboarding-verification-skill/SKILL.md
.warp/skills/gui-integration-test-video/SKILL.md
resources/bundled/mcp_skills/figma/edit-figma-design/SKILL.md
resources/bundled/mcp_skills/figma/figma-generate-design/SKILL.md
resources/bundled/mcp_skills/figma/figma-use/SKILL.md
resources/bundled/skills/claude-api/SKILL.md

Metadata

Files
0
Version
04a7f83
Hash
42ba205e
Indexed
2026-07-24 20:22

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 15:27
浙ICP备14020137号-1 $방문자$