sindresorhus / terminal-link

Create clickable links in the terminal
MIT License
620 stars 25 forks source link

feat(index.js fallback): added surrounding space for not supported terminals #15

Closed Nikodermus closed 4 years ago

Nikodermus commented 4 years ago

In unsupported terminals, the closing parenthesis is being taken as part of the link, see VSCode and WebStorm

Related issues:

11 #8 #1

sindresorhus commented 4 years ago

It's already wrapped in spaces. That's what the \u200B is. It's a zero-width space.

Nikodermus commented 4 years ago

That doesn't work for non-supported terminals, it make still to take the final parenthesis as part of the link, please check it out

sindresorhus commented 4 years ago

If non-zero space doesn’t work for your terminal, you should open an issue on the terminal’s issue tracker. You can also specify your own fallback.