Skip to content

Add Zed terminal support#7

Merged
sindresorhus merged 5 commits intochalk:mainfrom
kjanat:main
Dec 25, 2025
Merged

Add Zed terminal support#7
sindresorhus merged 5 commits intochalk:mainfrom
kjanat:main

Conversation

@kjanat
Copy link
Copy Markdown
Contributor

@kjanat kjanat commented Dec 17, 2025

Summary

  • Add support for Zed terminal (TERM_PROGRAM === 'zed')
  • Add lint scripts to package.json.
  • Update deps and fix eslint rule for xo@1.x compatibility

Copilot AI review requested due to automatic review settings December 17, 2025 15:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the Zed terminal emulator's hyperlink capabilities, adds convenience lint scripts, and updates dependencies to be compatible with xo@1.x. The main feature enables hyperlink detection when TERM_PROGRAM is set to Zed.

Key changes:

  • Adds Zed terminal to the list of supported hyperlink-capable terminals
  • Adds lint and lint:fix npm scripts for easier linting workflow
  • Updates eslint disable comment from no-mixed-operators to @stylistic/no-mixed-operators for xo@1.x compatibility

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
index.js Adds 'zed' case to TERM_PROGRAM switch statement and updates eslint comment syntax for xo@1.x
test.js Adds two test cases for Zed terminal support and reformats existing tests for consistency
package.json Adds lint scripts and updates dependencies (supports-color, ava, typescript, xo)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.js
Comment thread test.js
Comment thread test.js
Comment thread index.js
@sindresorhus sindresorhus merged commit dfb29c2 into chalk:main Dec 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants