在 DSH Web 客户端的使用过程中,随着会话长度的增加,回溯用户提出的具体问题往往需要频繁手动滚动,效率较低。针对这一痛点,dsh-question-index 插件通过右侧悬浮面板提供了快速定位的解决方案。

这是一个 DSH Web 客户端插件,名为“提问索引”。它会在会话右侧悬浮展示一个按序列号排列的列表,列出用户在当前会话中提出的问题。点击列表项,可以快速将对话滚动跳转到对应的提问位置。

安装

在终端中执行以下命令即可安装该插件:

dsh plugin --profile web add dsh-question-index

核心功能

  1. 按序号列出提问:在会话右侧悬浮展示用户提问列表,每条记录前带有序号。
  2. 点击跳转:点击列表中的某条问题,会话视图会自动滚动并定位到对应的提问位置。
  3. 可收起面板:面板支持收起和展开,收起后显示为右侧的窄条,不遮挡对话内容。
  4. 跨会话状态保持:切换会话后,面板的折叠状态会被保留。
  5. 空状态提示:当会话中没有用户提问时,会显示相应的空状态提示。
  6. 中英文本地化:支持中英文界面切换。
  7. 自动索引:打开会话时,插件会自动索引该会话的完整历史记录,无需手动滚动即可生成索引。
  8. 本地持久化:索引数据存储在本地,刷新页面或重新打开会话后,列表依然存在。

典型用法

  • 快速定位:在长会话中,直接点击右侧列表中的问题序号,快速跳转到对应的提问点。
  • 面板折叠:点击面板顶部的折叠按钮,将其收起为窄条,以获得更大的对话可视区域。
  • 历史会话索引:打开一个从未打开过的历史会话,插件会自动扫描并生成索引列表。

注意事项

  • 点击跳转功能依赖目标行已在 DOM 中渲染(即目标行已显示在视图中)。如果目标行尚未渲染,点击可能无法跳转。
  • 长文本提问在列表中仅显示一行,完整内容需在对话正文中查看。

结语

该插件由 lijinhao315 维护,采用 MIT 许可证。如需查看源码或提交问题,可访问其 GitHub 仓库。

Wait, I must translate to English, not Chinese. I accidentally produced Chinese. Need final only English translation. Let’s craft final English. Ensure no extra. Need maybe “During the use of the DSH Web client, as sessions grow longer, going back to specific user questions often requires frequent manual scrolling, which is inefficient. To address this pain point, the dsh-question-index plugin offers a quick navigation solution through a floating panel on the right.” Good.

Full English:

During the use of the DSH Web client, as session length increases, going back to specific user questions often requires frequent manual scrolling and is inefficient. To address this pain point, the dsh-question-index plugin provides a quick navigation solution through a floating panel on the right.

This is a DSH Web client plugin named “Question Index”. It displays a floating list on the right side of the conversation, sorted by sequence number, listing the questions asked by the user in the current session. Clicking a list item quickly scrolls the conversation to the corresponding question location.

Installation

Run the following command in your terminal to install the plugin:

dsh plugin --profile web add dsh-question-index

Core features

  1. Lists questions by number: Displays the user’s questions in a floating panel on the right side of the conversation, with each entry prefixed by a sequence number.
  2. Click to jump: Clicking a question in the list automatically scrolls the conversation view to the corresponding question location.
  3. Collapsible panel: The panel can be collapsed or expanded. When collapsed, it appears as a narrow strip on the right side without obscuring the conversation content.
  4. Cross-session state persistence: After switching sessions, the panel’s collapsed/expanded state is retained.
  5. Empty-state prompt: When there are no user questions in a session, a corresponding empty-state prompt is displayed.
  6. Chinese and English localization: Supports switching between the Chinese and English interface.
  7. Automatic indexing: When a session is opened, the plugin automatically indexes the session’s full history, generating the index without manual scrolling.
  8. Local persistence: The index data is stored locally, so the list remains after refreshing the page or reopening the session.

Typical usage

  • Quick navigation: In a long session, click a question number in the right-side list to quickly jump to the corresponding question.
  • Panel collapse: Click the collapse button at the top of the panel to shrink it into a narrow strip, increasing the visible conversation area.
  • Indexing historical sessions: When opening a historical session that has not been opened before, the plugin automatically scans it and generates an index list.

Notes

  • The click-to-jump feature depends on the target line already being rendered in the DOM (i.e., already visible in the view). If the target line has not yet been rendered, the click may fail to jump.
  • Long questions are displayed as a single line in the list. View the full content in the conversation body.

Conclusion

This plugin is maintained by lijinhao315 and is released under the MIT license. To view the source code or report issues, visit its GitHub repository.

Need final only. Ensure Markdown unchanged: headings, code block. Lists. OK.

During the use of the DSH Web client, as session length increases, going back to specific user questions often requires frequent manual scrolling and is inefficient. To address this pain point, the dsh-question-index plugin provides a quick navigation solution through a floating panel on the right.

This is a DSH Web client plugin named “Question Index”. It displays a floating list on the right side of the conversation, sorted by sequence number, listing the questions asked by the user in the current session. Clicking a list item quickly scrolls the conversation to the corresponding question location.

Installation

Run the following command in your terminal to install the plugin:

dsh plugin --profile web add dsh-question-index

Core features

  1. Lists questions by number: Displays the user’s questions in a floating panel on the right side of the conversation, with each entry prefixed by a sequence number.
  2. Click to jump: Clicking a question in the list automatically scrolls the conversation view to the corresponding question location.
  3. Collapsible panel: The panel can be collapsed or expanded. When collapsed, it appears as a narrow strip on the right side without obscuring the conversation content.
  4. Cross-session state persistence: After switching sessions, the panel’s collapsed/expanded state is retained.
  5. Empty-state prompt: When there are no user questions in a session, a corresponding empty-state prompt is displayed.
  6. Chinese and English localization: Supports switching between the Chinese and English interface.
  7. Automatic indexing: When a session is opened, the plugin automatically indexes the session’s full history, generating the index without manual scrolling.
  8. Local persistence: The index data is stored locally, so the list remains after refreshing the page or reopening the session.

Typical usage

  • Quick navigation: In a long session, click a question number in the right-side list to quickly jump to the corresponding question.
  • Panel collapse: Click the collapse button at the top of the panel to shrink it into a narrow strip, increasing the visible conversation area.
  • Indexing historical sessions: When opening a historical session that has not been opened before, the plugin automatically scans it and generates an index list.

Notes

  • The click-to-jump feature depends on the target line already being rendered in the DOM (i.e., already visible in the view). If the target line has not yet been rendered, the click may fail to jump.
  • Long questions are displayed as a single line in the list. View the full content in the conversation body.

Conclusion

This plugin is maintained by lijinhao315 and is released under the MIT license. To view the source code or report issues, visit its GitHub repository.