READMESource: main@4b8c3631
dsh-user-links
Links in the messages you send become clickable. Assistant replies already render Markdown, so their links work; your own text is drawn literally, and a pasted URL used to stay dead. This bundle adds one UserText rule and one inline renderer for it.
Behaviour
- Recognizes
http://,https://, andwww.addresses.www.addresses open ashttp://…. - Trailing sentence punctuation and an unbalanced
)stay outside the link. - A plain left click opens the address where Settings → General → Open chat links in sends chat links: the right Sidebar Browser or your default browser. Modified and middle clicks keep native anchor behavior.
- Display only: the stored message, its copy action, and the model input keep the original characters.
Limits
- Your messages only. Agent replies, reasoning, and tool output are not part of this UserText pipeline.
- An address must carry a scheme or
www.. A bareexample.comstays text. - Email addresses are not linked.
- A URL inside a larger word (
abc https://…is fine,abchttps://…is not) needs a boundary before it.
Install
dsh plugin install dsh-user-links
You can also install this directory as a local bundle from the DSH plugin panel, or with the plugin manager:
plugin_manager action: install_bundle, target: /absolute/path/to/dsh-user-links
The bundle inserts one row named dsh-user-links; disabling that row removes the behaviour and leaves the messages unchanged.
Files
client.js— the UserText rule and the keyedlinknode renderer.index.js— empty Host half; the bundle still has a visible row.cordis.patch.yml— the single insert row.locale/*.json— plugin title and description.icon.svg— the bundle icon.
Not covered on purpose
- Markdown syntax in your own message, such as
[label](url), is not parsed. Only the address itself becomes a link. - Bare domains, email addresses, and non-HTTP(S) schemes are left alone.
No comments yet. Be the first to write one.