fix(init): make URLs clickable with OSC 8 terminal hyperlinks#423
Merged
MathurAditya724 merged 2 commits intomainfrom Mar 13, 2026
Merged
fix(init): make URLs clickable with OSC 8 terminal hyperlinks#423MathurAditya724 merged 2 commits intomainfrom
MathurAditya724 merged 2 commits intomainfrom
Conversation
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Init
Issue List
Other
Bug Fixes 🐛Dsn
Init
Other
Documentation 📚
Internal Changes 🔧Init
Other
Other
🤖 This preview updates automatically when you update the PR. |
Contributor
Codecov Results 📊✅ 111 passed | Total: 111 | Pass Rate: 100% | Execution Time: 0ms 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 1064 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 95.03% 95.04% +0.01%
==========================================
Files 159 159 —
Lines 21428 21431 +3
Branches 0 0 —
==========================================
+ Hits 20364 20367 +3
- Misses 1064 1064 —
- Partials 0 0 —Generated by Codecov Action |
Wrap project and docs URLs in terminalLink() so they become clickable in terminals that support OSC 8 (iTerm2, VS Code, Windows Terminal). On unsupported terminals, the escape sequences are silently ignored. Also make the url parameter optional in terminalLink() — when only the display text is given and it is already the full URL, it doubles as the link target.
d6e0de3 to
90a62fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
terminalLink()(OSC 8 escape sequences) so they become clickable in supported terminals (iTerm2, VS Code, Windows Terminal, most modern emulators)terminalLink()utility fromsrc/lib/formatters/colors.ts— no new dependenciesChanges
src/lib/init/formatters.ts— Wrap project URL and docs URL in success summary and error outputsrc/lib/init/clack-utils.ts— Wrap docs URL in the cancellation messagesrc/lib/init/wizard-runner.ts— Wrap docs URL in the early "manual setup" info message