Question Pin: Locate Your Question Anytime in Long Responses

Introduction

When reading long responses in the DSH client, questions are often truncated or buried in the surrounding context. Once you’ve scrolled through a few exchanges, it’s hard to recall what you originally asked. Under DSH’s “everything is a plugin” philosophy, the community has produced many of these fine-grained experience-enhancement tools.

Question Pin (dsh-question-pin) is one such client plugin. It pins the question you asked in the current session as a floating card next to the corresponding answer, automatically switching to the relevant question as you scroll.

What It Is

Question Pin is a DSH client plugin maintained by KakuKevin28. It reads DSH’s public slots and line annotations to display a question card on the right side of the answer, corresponding to the currently visible segment. The card shows the full original text and supports jump-to, copy, and collapse actions.

The plugin appears as “Question Pin” on the Plugins page, uses icon.svg as its icon, and provides bilingual (English/Chinese) localization.

Core Features

  • A floating card displays the question corresponding to the current answer segment, showing the full original text rather than a truncated preview.
  • As you scroll, the card automatically switches to the question answered by the currently visible segment.
  • The card displays up to three lines by default; longer questions are viewed via a thin internal scrollbar without squeezing the main content.
  • Three action buttons are provided on the card:
  • “Back to this question”: scrolls the corresponding question to the center of the screen.
  • “Copy question”: copies the full question to the clipboard.
  • “Collapse”: shrinks the card into a small pin, retaining only the index number.
  • The card does not occupy space in the content flow and does not scroll with the message stream; when the mouse hovers over the card and the scroll wheel is used, the card content scrolls first, and once it hits a boundary, scrolling hands off to the chat area without getting stuck.
  • Line breaks within the question are preserved; no UI text such as timestamps or action buttons from message lines is mixed in.
  • When a question contains images or files, the card displays only a thumbnail or file name — no UI labels, file types, or sizes (e.g., PDF 1.2 MB). Questions with attachments only will also show a card.

Implementation Details

  • Uses only DSH client’s public slots (conversation.input.overlay) and line annotations (data-chat-anchor-key / data-chat-turn / data-conversation-scroll); does not override any built-in UI.
  • The card is mounted on document.body using position: fixed, so it is not clipped by the message stream’s scroll container.
  • All colors are drawn from DSH theme tokens (--dsw-alias-*), automatically following light/dark mode.
  • On narrow windows where the card cannot fit beside the content, it automatically sticks to the right edge; when vertical space is insufficient, it takes at most half the screen height.
  • No new global keyboard shortcuts are added, and it does not steal focus from the chat input field.

Installation & Activation

Question Pin requires DSH version >=0.2.0-rc.1 and Node version ^22.19.0 || >=24.0.0.

Install from GitHub:

dsh plugin --profile web add github:KakuKevin28/dsh-question-pin

Install from a local directory:

plugin_manager install_bundle <absolute path to this directory>

After installation, enable “Question Pin” on DSH’s Plugins page.

Typical Usage

Once installed and enabled, scroll down through a long answer in a conversation. A floating card will automatically appear on the right side, displaying the question corresponding to the current segment. The card shows the full original text and supports jump-to, copy, or collapse. If the question contains images or files, the card will display a thumbnail or file name.

Use Cases & Notes

Ideal for scenarios where you frequently read long answers and need to locate the original question at any time, such as code reviews, long documentation reviews, or technical proposal comparisons.

The plugin runs with the current DSH process’s permissions. It is recommended to review the source code and license (MIT) before installing.

Summary

Question Pin uses a floating card approach to make reading long answers a more coherent experience. It does not override existing UI but leverages DSH’s public slots and line annotations to enhance readability in a purely additive, “add-only” manner. For more details, visit the SkillHub directory page or the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye