Project
vgrep
Description
The models info command displays URLs for model downloads as plain text. Modern terminals support OSC 8 hyperlinks, allowing URLs to be clickable. Currently users must manually copy/paste URLs.
Error Message
$ vgrep models info
Available models:
qwen3-embedding-0.6b
Size: 620 MB
URL: https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF/resolve/main/qwen3-embedding-0.6b-f16.gguf
# URL is plain text, not clickable in terminal
Debug Logs
System Information
OS: Ubuntu 24.04.3 LTS
CPU: Intel(R) Core(TM) i9-14900HX (8 cores)
RAM: 16 GB
Screenshots
No response
Steps to Reproduce
- Run
vgrep models info
- Observe URLs displayed as plain text
- Attempt to click URL (nothing happens in supporting terminals)
- Must manually select and copy URL to browser
Expected Behavior
- URLs rendered as OSC 8 hyperlinks in supporting terminals
- Clicking URL opens browser (in terminals like iTerm2, Windows Terminal, GNOME Terminal)
- Graceful fallback to plain text in unsupporting terminals
Actual Behavior
- URLs displayed as plain text only
- No hyperlink escape sequences
- Manual copy/paste required
- Suboptimal UX in modern terminals
Additional Context
Added OSC 8 hyperlink support in src/ui/console.rs:
/// Create a clickable hyperlink using OSC 8 escape sequence.
/// Falls back to plain text display in unsupporting terminals.
pub fn hyperlink(url: &str, text: &str) -> String {
format!("\x1b]8;;{}\x07{}\x1b]8;;\x07", url, text)
}
/// Create a hyperlink where the URL is also the display text.
pub fn hyperlink_url(url: &str) -> String {
hyperlink(url, url)
}
References
Project
vgrep
Description
The
models infocommand displays URLs for model downloads as plain text. Modern terminals support OSC 8 hyperlinks, allowing URLs to be clickable. Currently users must manually copy/paste URLs.Error Message
$ vgrep models info Available models: qwen3-embedding-0.6b Size: 620 MB URL: https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF/resolve/main/qwen3-embedding-0.6b-f16.gguf # URL is plain text, not clickable in terminalDebug Logs
System Information
Screenshots
No response
Steps to Reproduce
vgrep models infoExpected Behavior
Actual Behavior
Additional Context
Added OSC 8 hyperlink support in
src/ui/console.rs:References