Skip to content

feat: show hover tooltip for OSC 8 and file path links#246

Merged
nwparker merged 2 commits intomainfrom
nwparker/hover-other-url-types
Apr 1, 2026
Merged

feat: show hover tooltip for OSC 8 and file path links#246
nwparker merged 2 commits intomainfrom
nwparker/hover-other-url-types

Conversation

@nwparker
Copy link
Copy Markdown
Contributor

@nwparker nwparker commented Apr 1, 2026

Summary

  • OSC 8 hyperlinks (e.g. stablyai/noqa#8547 emitted by CLI tools) now show the bottom-left Ghostty-style hover tooltip, matching the existing behavior for plain-text URLs
  • Detected file path links also now show the tooltip (displaying the resolved absolute path)
  • Exposes linkTooltip on the public ManagedPane type so link handlers can access the shared tooltip element

Test plan

  • Hover over a plain URL (e.g. https://example.com) in terminal — tooltip should still appear (no regression)
  • Hover over an OSC 8 hyperlink (e.g. owner/repo#123 reference from Claude Code) — tooltip should now appear at bottom-left
  • Hover over a detected file path (e.g. src/main.ts) — tooltip should appear showing the resolved absolute path
  • Verify tooltip disappears when mouse leaves any link type
  • Verify Cmd+click (Mac) / Ctrl+click (other) still opens links correctly

🤖 Generated with Claude Code

nwparker and others added 2 commits March 31, 2026 18:36
Previously only plain-text URLs (via WebLinksAddon) showed the bottom-left
hover tooltip. Now OSC 8 hyperlinks (e.g. GitHub owner/repo#issue refs
emitted by CLI tools) and detected file paths also display the same
Ghostty-style tooltip on hover.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
File path links in the terminal now require the same Cmd+click (Mac) /
Ctrl+click (other) modifier as OSC 8 and web links, preventing
accidental navigation when clicking terminal text.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nwparker nwparker merged commit 9fa7aec into main Apr 1, 2026
1 check passed
@nwparker nwparker deleted the nwparker/hover-other-url-types branch April 1, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant