UI & Interfacedsh-plugin
dsh-annotation
Browser-side selection-annotation plugin for DSH Web: select text, add a note, and press Enter to send it along with your message; the model replies to each annotation by number. Annotations carry blue numbered markers and highlights, a hoverable "Annotations ×N" chip, and hoverable reply chips, with the annotation block hidden from your own message bubble.
Stars
117
Forks
9
Open issues
3
Last push
Sep 15, 2026
Latest release
v1.4.10
24h Growth
+0
7d Growth
+0
Installation
dsh plugin --profile web add @changfenhuang/dsh-annotationOverview
Browser-side selection-annotation plugin for DSH Web: select text, add a note, and press Enter to send it along with your message; the model replies to each annotation by number. Annotations carry blue numbered markers and highlights, a hoverable "Annotations ×N" chip, and hoverable reply chips, with the annotation block hidden from your own message bubble.
- Select-to-annotate: select assistant text, click "Annotate", write a note (may be empty); dismiss by clicking elsewhere or pressing Esc
- Blue numbered marker plus highlight anchored to the passage, viewport-anchored with collision avoidance
- Annotations accumulate across messages and turns, numbered from 1
- "Annotations ×N" chip beside the input box; hover shows every annotation, each deletable individually
- Enter sends the annotation block with your question; the block is removed from your own bubble before the browser paints (zero flicker)
- Model replies `Annotation 1: …` … `Annotation N: …` one per annotation; each label renders as a hoverable chip
- Locale-aware: UI copy and the annotation protocol block follow DSH's `locale` service (zh/en, live switch), falling back to zh
- Sidebar file annotations for plain text, Markdown, or code previews, including the file path; markers restored after reload (not PDF, images, or HTML in iframes