ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 DJPalefaceSD

steering-wheel

用一个组合键在 Claude 回合中途调整方向。/steering-wheel 将 Ctrl+X Ctrl+X 设为立即发送等待中的消息,提示符下方也会显示说明。

DJPalefaceSD@DJPalefaceSD

DJPalefaceSD/rostech-mods/tree/main/plugins/steering-wheel

已翻译

关于这个 mod

Steering Wheel 让你在 Claude 回合进行中连续按两次 Ctrl+X,立即发送已经输入的下一条消息,从而即时调整工作方向。运行 /steering-wheel 会在你自己的 ~/.claude/keybindings.json 中加入 Ctrl+X Ctrl+X 组合键,其余设置保持不变,原有 Ctrl+X Ctrl+S 仍可使用;提示文字会根据按键配置显示“tap Ctrl+X Ctrl+X to send now”。早期版本使用 F5(Claude Code 不接受功能键)和 Alt+Enter(Windows Terminal 用于全屏),因此改成了能在各种终端工作的 Ctrl+X Ctrl+X;如果旧版本留下 F5,或停用了 Ctrl+X Ctrl+S,该命令也会一并清除。由于外插件无法自行绑定按键,只有你运行命令时才会写入按键配置文件。MIT 授权,作者为 Rostech。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add DJPalefaceSD/rostech-mods
claude plugin install steering-wheel
原文 / README

Steering Wheel

Steer Claude mid-turn with one chord.

When Claude is working and you have typed your next message, Claude Code holds it until the turn ends. Steering Wheel lets you send it right away and steer the work. Press Ctrl+X, then Ctrl+X again.

What it does

  • /steering-wheel adds Ctrl+X Ctrl+X to your own ~/.claude/keybindings.json. That chord then sends a waiting message now.
  • Everything else in that file stays as you had it. The default chord, Ctrl+X Ctrl+S, keeps working too.
  • The hint under the prompt then reads tap Ctrl+X Ctrl+X to send now. It reads the key from your keybindings file, so if you change the key yourself, the hint follows.

Why not F5

Versions 0.1.1 and before used F5. Claude Code does not take function keys, so F5 did nothing. Version 0.1.0 used Alt+Enter, which Windows Terminal keeps for full screen. Ctrl+X Ctrl+X works in any terminal.

If an older version left F5 in your file, or switched Ctrl+X Ctrl+S off, /steering-wheel takes those two lines back out. It touches nothing else.

Notes

  • A plugin cannot bind keys by itself. Your keys live in your own keybindings file, which is why Steering Wheel writes there only when you run /steering-wheel.
  • Esc stays the stop button.

MIT licensed. Made by Rostech.

更多类似作品