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

horn

一个组合键立即发送,像按一下喇叭。

DJPalefaceSD@DJPalefaceSD

DJPalefaceSD/rostech-mods/tree/main/plugins/horn

已翻译

关于这个 mod

Horn

一个组合键立即发送,像按一下喇叭。

Claude 工作时,如果你已经输入下一条消息,Claude Code 会等到回合结束才发送。Horn 让你立即发送:按 Ctrl+X,再按一次 Ctrl+X。鸣笛。

功能

  • /horn 将 Ctrl+X Ctrl+X 加入你自己的 ~/.claude/keybindings.json;之后这个组合键会立即发送等待中的消息。
  • 文件中的其他内容保持不变。默认组合键 Ctrl+X Ctrl+S 仍然有效。
  • 提示符下方会显示 tap Ctrl+X Ctrl+X to send now。它会读取按键配置文件中的按键,因此你自行修改按键后提示也会跟随。

为什么不是 F5

这个 mod 以前叫 Ignition,使用 F5。但 Claude Code 不接收功能键,所以 F5 没有作用。Ctrl+X Ctrl+X 可在任何终端工作。如果旧版本在文件中留下 F5,或关闭了 Ctrl+X Ctrl+S,/horn 会删除这两行,不会触碰其他内容。

注意

插件不能自行绑定按键。按键位于你自己的 keybindings 文件中,所以 Horn 只在你运行 /horn 时写入该文件。Esc 仍然是停止按钮。

MIT 授权,由 Rostech 制作。

安装

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

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

Horn

One chord to send now. Like a tap on the horn.

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

What it does

  • /horn 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

This mod used to be called Ignition, and it used F5. Claude Code does not take function keys, so F5 did nothing. Ctrl+X Ctrl+X works in any terminal.

If an older version left F5 in your file, or switched Ctrl+X Ctrl+S off, /horn 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 Horn writes there only when you run /horn.
  • Esc stays the stop button.

MIT licensed. Made by Rostech.

其他同名作品

更多类似作品