Skip to content

Comments

feat/hyperlink-support#88

Closed
jossephus wants to merge 4 commits intorockorager:mainfrom
jossephus:feat/hyperlink-support
Closed

feat/hyperlink-support#88
jossephus wants to merge 4 commits intorockorager:mainfrom
jossephus:feat/hyperlink-support

Conversation

@jossephus
Copy link
Contributor

@jossephus jossephus commented Jan 14, 2026

add hyperlink support with urls auto http/https detection.

  • supports opening urls using cmd + a mouse click
  • auto scan rows for http /https:// URLs
  • show pointer cursor when hovering hyperlinks with Cmd held
  • Add pty:get_hyperlink_at() Lua API for scripts

feature in action

hyperlink-demo.mp4

Note: you can see there is a bug where the urls display as black at first and get their white color upon selection. This has been a bug i have been hunting but couldnt figure out where its coming from. I just wanted to open this PR so it can serve as a building block for the feature. Thanks!

Edit: This issue might be specific to my .bashrc content. since its working good when i am in a pure bash shell with out any config.

as always implementation started with this conversation in amp: https://ampcode.com/threads/T-019bb89d-b5ff-740e-a9a4-ebed3c85b14e

Parse OSC 8 hyperlinks from terminal applications and auto-detect
http/https URLs in terminal output. Hyperlinks are underlined and
can be opened with Cmd+click (opens in system browser).

- Store hyperlink definitions and associate cells with hyperlink IDs
- Auto-scan rows for http:// and https:// URLs
- Show pointer cursor when hovering hyperlinks with Cmd held
- Add pty:get_hyperlink_at() Lua API for scripts
@jossephus jossephus force-pushed the feat/hyperlink-support branch from 8300067 to d0e087b Compare January 18, 2026 18:05
@jossephus jossephus closed this Feb 3, 2026
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