Skip to content
Back to search

dsh-composer-keys

⌨️ Keyboard shortcuts for the DSH chat composer — ↑↓ cycle history, Ctrl+C clear input. DSH web plugin.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/kexin8--dsh-composer-keys/badge.svg)](/listings/kexin8--dsh-composer-keys)

HTML

<a href="/listings/kexin8--dsh-composer-keys"><img src="/api/listings/kexin8--dsh-composer-keys/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

From GitHub

dsh plugin --profile web add https://github.com/kexin8/dsh-composer-keys.git

From a local checkout

git clone https://github.com/kexin8/dsh-composer-keys.git
dsh plugin --profile web add link:~/dsh-composer-keys

Via npm (when published)

npm i dsh-composer-keys
dsh plugin --profile web add dsh-composer-keys

After installing, restart the DSH Web GUI and reload the page.

---

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 99 lines
  1. # dsh-composer-keys ⌨️
  2. Keyboard shortcuts for the [DeepSeek Harness](https://github.com/deepseek-ai/dsh) (DSH) Web chat composer.
  3. **中文文档:[简体中文](./README.zh.md)**
  4. ![License](https://img.shields.io/badge/license-MIT-blue.svg)
  5. ![Version](https://img.shields.io/badge/dsh--plugin-v0.1.0-green.svg)
  6. ![Platform](https://img.shields.io/badge/platform-web-orange.svg)
  7. ![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)
  8. Type faster, navigate history with pure keyboard. No mouse needed.
  9. ---
  10. ## ✨ Features
  11. | Shortcut | Action |
  12. |----------|--------|
  13. | **↑** Arrow Up | Fill the composer with the previous user message from history |
  14. | **↓** Arrow Down | Move to the next user message; at the end, restore your original input |
  15. | **Ctrl+C** | Clear the composer when no text is selected (avoids conflict with Copy) |
  16. ### Behavior details
  17. - **History cycling** follows shell-style semantics: press ↑ to walk backwards through
  18. your previously sent messages; press ↓ to walk forward again; at the newest end it
  19. restores whatever you had typed before you started navigating.
  20. - **Ctrl+C** only clears when the composer has content and no text is selected —
  21. if you have selected text, the browser's native Copy takes precedence.
  22. - Uses **Ctrl+C** only, identical on Windows and macOS (on macOS, `Cmd+C` stays the system Copy).
  23. ---
  24. ## 📦 Install
  25. ### From GitHub
  26. ```bash
  27. dsh plugin --profile web add https://github.com/kexin8/dsh-composer-keys.git
  28. ```
  29. ### From a local checkout
  30. ```bash
  31. git clone https://github.com/kexin8/dsh-composer-keys.git
  32. dsh plugin --profile web add link:~/dsh-composer-keys
  33. ```
  34. ### Via npm (when published)
  35. ```bash
  36. npm i dsh-composer-keys
  37. dsh plugin --profile web add dsh-composer-keys
  38. ```
  39. After installing, restart the DSH Web GUI and reload the page.
  40. ---
  41. ## 🧩 How it works
  42. A client-only plugin. It registers an invisible component in the
  43. `conversation.composer.dock` slot (the additive, non-destructive input-region seat),
  44. which attaches a `keydown` listener on `document` and intercepts shortcuts only while
  45. the composer textarea is focused:
  46. - **Arrow Up/Down** — reads historical user messages from the live
  47. `ConversationSnapshot` and fills the composer via `inputActions.setDraft()`.
  48. - **Ctrl+C** — calls `setDraft('')` when the input is non-empty and nothing is selected.
  49. No host process code, no persistence, no settings — pure client-side, stops cleanly
  50. on plugin stop/update.
  51. ---
  52. ## 🗂 Project structure
  53. ```
  54. dsh-composer-keys/
  55. ├── lib/
  56. │ ├── index.js # host stub (client-only plugin)
  57. │ └── client.js # client module (__ModuleLoader__ format)
  58. ├── cordis.patch.yml # cordis composition patch (inserts the plugin row)
  59. ├── package.json # dsh plugin manifest
  60. └── README.md
  61. ```
  62. ---
  63. ## 🤝 Contributing
  64. PRs are welcome! Please make sure the plugin still works in the DSH Web GUI after
  65. your change. Keep the client code plain-JavaScript (no TypeScript/JSX in the shipped
  66. `lib/` output) and never add host-side logic unless the feature truly needs it.
  67. ## 📄 License
  68. [MIT](./LICENSE)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.