Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/cli/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,9 @@ fn run_models(action: ModelsAction, config: &mut Config) -> Result<()> {
);
println!(" {} ~600MB", style("Size:").dim());
println!(
" {} https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF",
style("URL:").dim()
" {} {}",
style("URL:").dim(),
ui::hyperlink("https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF", "https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF")
);
println!();
println!(
Expand All @@ -990,8 +991,9 @@ fn run_models(action: ModelsAction, config: &mut Config) -> Result<()> {
);
println!(" {} ~400MB", style("Size:").dim());
println!(
" {} https://huggingface.co/sinjab/Qwen3-Reranker-0.6B-Q4_K_M-GGUF",
style("URL:").dim()
" {} {}",
style("URL:").dim(),
ui::hyperlink("https://huggingface.co/sinjab/Qwen3-Reranker-0.6B-Q4_K_M-GGUF", "https://huggingface.co/sinjab/Qwen3-Reranker-0.6B-Q4_K_M-GGUF")
);
println!();
println!(" Download with: {}", style("vgrep models download").cyan());
Expand Down
11 changes: 11 additions & 0 deletions src/ui/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ pub static EYE: Emoji<'_, '_> = Emoji("👁️ ", "");
pub static SPARKLES: Emoji<'_, '_> = Emoji("✨ ", "");
pub static BRAIN: Emoji<'_, '_> = Emoji("🧠 ", "");

/// 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)
}

pub fn print_banner() {
let banner = r#"

Expand Down
Loading