Skip to content

Commit

Permalink
fix: apple terminaL hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
savioxavier committed Jan 13, 2025
1 parent 0b0fb21 commit 014df06
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions termlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,20 @@ func supportsHyperlinks() bool {
return v.major >= 20200620
case "vscode":
return v.major > 1 || (v.major == 1 && v.minor >= 72)

// Hyper Terminal used to be included in this list, and it even supports hyperlinks
// but the hyperlinks are pseudo-hyperlinks and are actually not clickable
case "ghostty":
// it is unclear when during the private beta that ghostty started supporting hyperlinks,
// It is unclear when during the private beta that ghostty started supporting hyperlinks,
// so we'll start from the public release.
return v.major >= 1
default:
return false

// Hyper Terminal used to be included in this list, and it even supports hyperlinks
// but the hyperlinks are pseudo-hyperlinks and are actually not clickable
}
}

// Terminals which have a TERM variable set
if matchesEnv("TERM", []string{"xterm-kitty", "xterm-256color", "alacritty", "alacritty-direct", "xterm-ghostty"}) {
if matchesEnv("TERM", []string{"xterm-kitty", "alacritty", "alacritty-direct", "xterm-ghostty"}) {
return true
}

Expand Down

0 comments on commit 014df06

Please sign in to comment.