-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
feat: reportersIssues and PRs related to Vitest reportersIssues and PRs related to Vitest reportersp2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)
Description
Clear and concise description of the problem
When running vitest from Ghostty, file path in the output are not CMD+clickable:
This is due to the fact that terminals implement some logic to try and match file paths using a regexp, which is an imperfect process.
Terminal emulators and terminal CLI commands have started converging on the OSC 8 "standard" to tag hyperlinks in terminal output, but vitest does not use that standard.
Suggested solution
Wrap file paths in the terminal output with the required tags to mark them as hyperlinks.
Alternative
The https://github.com/sentriz/add-osc-8-hyperlink tool can be used to transform a process's output and add clickable links, but it does not seem to work with the output of vitest run.
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: reportersIssues and PRs related to Vitest reportersIssues and PRs related to Vitest reportersp2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)