Skip to main content

Module hyperlink

Module hyperlink 

Source

Structs§

HyperlinkSpan
A detected hyperlink span in the rendered terminal buffer.

Functions§

collect_from_buffer
Scan the rendered terminal buffer within area for bare HTTP/HTTPS URLs.
collect_from_buffer_with_md_links
Collects hyperlink spans from the buffer in a single pass, merging regex-detected bare URLs with markdown links. Markdown links take precedence: if a markdown link’s display text overlaps with a bare-URL span on the same row, the bare-URL span is replaced. Only http(s) URLs are emitted for markdown links.
detect_urls_in_text
Find all HTTP/HTTPS URLs in text and return their byte ranges and URLs.
write_osc8
Write OSC 8 escape sequences directly to the terminal writer. Cursor is repositioned for each hyperlink; the visible text is untouched.