READMESource: main@14178d0e
Prompt history · 提示历史
Recall prompts you already sent in this session, without retyping them. 把这一轮会话里已经发出去的提示词直接找回来,不用重新打一遍。
English
What it adds
Ctrl+↑(rebindable) opens a panel listing the last 100 user messages of the current conversation, newest first.↑/↓,Home/Endmove the highlight,Enteror a click fills the composer (it never sends),Esccloses without touching the draft.Ctrl+↓restores the draft that was in the composer before the last pick.- A history icon on the left of the composer card opens the same panel with the mouse.
Only plain text is restored: images, @ references and / command chips are not replayed.
History is session-local and in-memory — switching conversations, reloading or restarting
discards the browse state. Both shortcuts appear under Settings → General → Keyboard
shortcuts and can be rebound there.
Install
dsh plugin --profile desktop add dsh-plugin-prompt-history
Or add the plugin market index and install it from Discover.
Requirements
- DSH Desktop (Windows / macOS). The web build reserves plain arrow combinations, so the default bindings are only declared for the desktop runtime.
Files
client.js— the whole feature: shortcut commands, the overlay panel, the icon button.index.js— empty host entry, required by the bundle patch.cordis.patch.yml— inserts this package into the profile bundle.
中文
功能
Ctrl+↑(可在设置里改键)弹出面板,按从新到旧列出当前会话最近 100 条用户消息。↑/↓、Home/End移动高亮,Enter或鼠标点击填入输入框(只填入,不发送),Esc关闭且完全不动草稿。Ctrl+↓恢复上一次选择前输入框里的内容。- 输入卡片左侧有一个历史图标,鼠标点击效果等同
Ctrl+↑。
只还原纯文本:图片、@ 引用、/ 命令都不会被复现。
历史只在当前会话、当前页面内存在——切换会话、刷新或重启后浏览状态即丢弃。两个快捷键都会出现在
设置 → 通用 → 键盘快捷键,可随时改绑。
安装
dsh plugin --profile desktop add dsh-plugin-prompt-history
也可以在 DSH 的「发现」里添加插件市场索引后直接安装。
环境要求
- DSH Desktop(Windows / macOS)。Web 端把裸方向键组合视为保留键,所以默认键位只对桌面端声明。
文件结构
client.js— 全部功能:快捷键命令、浮层面板、图标按钮。index.js— 空的主机入口,bundle 补丁要求存在。cordis.patch.yml— 把本包插入 profile 的 bundle。
License
MIT
No comments yet. Be the first to write one.