ClaudeMods
☰
ZH-TW
● 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.

其他同名作品

更多類似作品