Mention Tooltip Plugin

Introduction

In the @ suggestion menu of DeepSeek Harness, a truncated line of text displays only about 40% of its content, with the remainder replaced by an ellipsis. When the window is narrow or the right sidebar is collapsed, the full text simply isn’t visible. To identify a clipped filename, folder, or other content, you’re usually left to guess or infer from context.

The Mention tooltip plugin is designed to solve exactly this problem: when the cursor hovers over a line that is genuinely truncated, the plugin displays the full text inline within that line, rather than popping up a separate tooltip.

What It Is

Mention tooltip is a DeepSeek Harness bundle, published as @xiaozou-wine/mention-tooltip. It only targets truncated @ menu lines and leaves all other lines untouched. The plugin itself adds a single entry to the configuration; no additional configuration options are required.

Core Features

  • Responds only to truncated lines: The plugin detects whether a line’s text is actually clipped by an ellipsis. If the text fits within the available width, the line is left as-is.
  • Minimal duplication: Only the clipped portion of the text is displayed, avoiding repetition of content already visible.
  • Inline display: The tooltip text appears directly inside the hovered line without inflating the line height or overflowing the line width, so it doesn’t disrupt reading of adjacent lines.
  • Theme-aware: The tooltip text automatically adapts to the application’s theme colors and does not consume additional mouse events.
  • Auto-dismiss: The tooltip disappears automatically when the pointer moves away, on click, on input, or when the hovered line shifts position.

Installation & Activation

The plugin can be installed via the Web GUI or the command line, under the package name @xiaozou-wine/mention-tooltip.

Via the Web GUI

  1. Open the DeepSeek Harness Web interface.
  2. Navigate to Plugins → Add plugin.
  3. Enter @xiaozou-wine/mention-tooltip and enable the plugin.

Via the Terminal

dsh plugin --profile web add @xiaozou-wine/mention-tooltip

Once installed, the plugin automatically adds its entry to the configuration—no manual setup required. If you need to place the entry manually, you can add it to the profile’s cordis.patch.yml:

- id: mention-tooltip
  name: '@xiaozou-wine/mention-tooltip'

How It Works

The plugin inspects the text state of the current line on the pointerover event:

  1. It detects which parts of the line have text-overflow set to ellipsis, indicating clipping.
  2. It compares scrollWidth (actual rendered width) against clientWidth (visible width).
  3. If the text is genuinely clipped, it displays the full text inline within the line after a 180 ms delay.

Scroll behavior handling:
- If the menu itself is scrolling, the plugin requests that the tooltip track the current line.
- If only the chat history is scrolling while the menu remains stationary, the plugin does not respond, preventing tooltip flicker.

Scope & Caveats

The plugin currently only supports truncated text within the @ suggestion menu. It does not apply to truncated text in session titles, tags, file trees, or other locations.

Because the tooltip text duplicates the inline text, the plugin marks it as aria-hidden to avoid introducing noise for screen readers.

The plugin runs with client-side permissions. It is recommended to review the source code and license before installing. This plugin is released under the MIT License.

Summary

The Mention tooltip plugin addresses the difficulty of viewing truncated text in the DeepSeek Harness @ menu by displaying the full text inline, providing the necessary information while keeping the interface clean. It only activates on lines that are genuinely clipped, does not interfere with the display of other lines, and is well suited for users who need to quickly view the full content of long filenames, long paths, and similar scenarios.

  • Plugin directory: https://www.skillhub.cn/plugins/xiaozou-second/dsh-mention-tooltip
  • GitHub repository: https://github.com/xiaozou-second/dsh-mention-tooltip
羽毛球分组比赛记分
小程序二维码

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

Xiaoye