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

prompt-dock

一个 Claude Code 模组,让您发送的每个提示都触手可及,并通过引用对话的任何部分来回复它。

aliemrevezir@aliemrevezir

aliemrevezir/mods/tree/main/plugins/prompt-dock

已翻译

关于这个 mod

prompt-dock

一个 Claude Code 模组,让您发送的每个提示都触手可及,并通过引用对话的任何部分来回复它。

基于 oikon48/prompt-rail 构建:相同的轨道和停靠栏,并扩展了引用回复功能。

功能介绍

轨道(默认)。 输入框上方有一个细长的轨道,每个提示一个刻度。粗刻度是您在对话记录中正在查看的提示。

#5 Compare debounce and throttle as a short list.     ↩ Reply  [–]
││││┃
  • 将鼠标悬停在刻度上,可在其上方预览该提示。
  • 单击刻度可将对话记录滚动到该提示。
  • [–] 将列表移入停靠栏。

停靠栏。 对话记录旁边的一个窄列,每个提示一行,当前提示用 ━ 标记。

5 prompts                ↩ ×
─ Explain what a deb…
━ Write a TypeScript…
─ Add a leading-edge…
─ Write three vitest…
─ Compare debounce a…
  • 单击一行可跳转到该行。
  • × 将列表发送回轨道。

回复。 用鼠标选择任何文本(一个答案、一行代码、一个较早的提示),然后按下 ↩ Reply。所选内容将作为 Markdown 引用显示在提示的顶部,您已输入的内容保留在其下方:

> Debounce waits for silence; throttle enforces a minimum time between executions.

Show me both in one example.

命令

| 命令 | 功能 | | ---------- | ------------------------------------------------------------- | | /prompts | 在轨道和停靠栏之间移动列表 | | /reply | 将当前选定的内容引用到提示顶部 |

安装

在 Claude Code 内部:

/plugin marketplace add aliemrevezir/mods
/plugin install prompt-dock@aliemrevezir-mods

或者直接从克隆加载:

git clone https://github.com/aliemrevezir/mods
claude --plugin-dir mods/plugins/prompt-dock

要在每个会话中加载它而无需标志,请在 env 块的 ~/.claude/settings.json 中将 CLAUDE_CODE_PLUGIN_DIRS 设置为该文件夹。

要求

  • 带有模组(插件钩子模块)的 Claude Code 构建。
  • 全屏布局用于“您所在位置”的刻度以及阅读选择。在主屏幕布局中,轨道仍然有效,粗刻度会跟随您上次的跳转或最新的提示。
  • 如果终端已清除高亮显示,回复将回退到剪贴板文本:macOS 上为 pbpaste,Linux 上为 wl-paste 或 xclip。

鸣谢

  • prompt-dock 基于 Oikon 的 prompt-rail 构建(GitHub @oikon48,X @oikon48)。轨道、悬停预览、点击跳转和垂直停靠栏是他们的设计;prompt-dock 重新实现了它并添加了引用回复。如果您只想要轨道,请使用原始版本:/plugin marketplace add oikon48/prompt-rail。
  • 通过 HQ NET 视频 CLAUDE'UN MODS ÖZELLİĞİ MUHTEŞEM 发现,该视频介绍了社区模组。
  • 模组社区讨论串始于 ClaudeDevs 公告。

开发

claude plugin validate .
claude plugin test .

纯逻辑(将提示与对话记录行配对,选择当前提示,引用格式)位于 hooks/rail.ts 和 hooks/exchanges.ts 中;绘图和事件位于 hooks/register.tsx 中。

许可证

MIT

安装

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

claude plugin marketplace add aliemrevezir/mods
claude plugin install prompt-dock
原文 / README

prompt-dock

A Claude Code mod that keeps every prompt you sent one click away, and lets you reply to any piece of the conversation by quoting it.

Built on top of oikon48/prompt-rail: the same rail and dock, extended with quote-reply.

What it does

Rail (default). A thin rail sits above the input, one tick per prompt. The thick tick is the prompt you are looking at in the transcript.

#5 Compare debounce and throttle as a short list.     ↩ Reply  [–]
││││┃
  • Hover a tick to preview that prompt in the line above it.
  • Click a tick to scroll the transcript to that prompt.
  • [–] moves the list into the dock.

Dock. A narrow column beside the transcript, one line per prompt, the current one marked with ━.

5 prompts                ↩ ×
─ Explain what a deb…
━ Write a TypeScript…
─ Add a leading-edge…
─ Write three vitest…
─ Compare debounce a…
  • Click a row to jump to it.
  • × sends the list back to the rail.

Reply. Select any text with the mouse (an answer, a code line, an earlier prompt), then press ↩ Reply. The selection lands at the top of your prompt as a Markdown quote, with whatever you had already typed kept below it:

> Debounce waits for silence; throttle enforces a minimum time between executions.

Show me both in one example.

Commands

| Command | What it does | | ---------- | ------------------------------------------------------------- | | /prompts | Move the list between the rail and the dock | | /reply | Quote the current selection at the top of the prompt |

Install

From inside Claude Code:

/plugin marketplace add aliemrevezir/mods
/plugin install prompt-dock@aliemrevezir-mods

Or load it straight from a clone:

git clone https://github.com/aliemrevezir/mods
claude --plugin-dir mods/plugins/prompt-dock

To load it in every session without the flag, set CLAUDE_CODE_PLUGIN_DIRS in the env block of ~/.claude/settings.json to that folder.

Requirements

  • A Claude Code build with mods (plugin hook modules).
  • The fullscreen layout for the "where you are" tick and for reading the selection. On the main-screen layout the rail still works, and the thick tick follows your last jump or newest prompt.
  • If the terminal has already cleared the highlight, Reply falls back to the clipboard text: pbpaste on macOS, wl-paste or xclip on Linux.

Credits

Development

claude plugin validate .
claude plugin test .

The pure logic (pairing prompts with transcript rows, picking the current prompt, the quote format) lives in hooks/rail.ts and hooks/exchanges.ts; drawing and events live in hooks/register.tsx.

License

MIT

更多类似作品