Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 19, 2026

Description

This PR implements OSC 8 hyperlink support for the \�grep models info\ command, addressing Issue #63.

Changes

  • Added \hyperlink\ and \hyperlink_url\ helper functions in \src/ui/console.rs\ which generate the appropriate OSC 8 escape sequences.
  • Updated \src/cli/commands.rs\ to use these helpers when displaying model download URLs.

Why

Currently, model URLs are displayed as plain text, requiring users to manually copy and paste them. Modern terminals support clickable hyperlinks, which significantly improves the user experience.

Verification

I have verified the implementation logic with a test case ensuring the correct OSC 8 escape sequences are generated.

\
ust
\x1b]8;;https://example.com\x07https://example.com\x1b]8;;\x07
\\

- Added hyperlink and hyperlink_url helper functions in ui::console
- Updated �grep models info command to use clickable hyperlinks for model downloads
- Improves UX in modern terminals supporting OSC 8
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.

2 participants