xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

generic URI scheme support in xterm-addon-web-links

Open r10r opened this issue 2 years ago • 2 comments

Hi devs,

The xterm-addon-web-links currently only supports the http and https schemes. What do you think about generic URI support where the user can set/extend the schemes to support? E.g I would be happy to have support for clickable mailto: links.

Running this in the browser console works:

location.href = 'mailto:[email protected]?subject=Hello%20World&body=Hello%20Bob!'

r10r avatar Apr 01 '22 10:04 r10r

Do checkout https://github.com/LabhanshAgrawal/xterm-link-provider You can give it a regex for your desired pattern and create links

LabhanshAgrawal avatar Apr 15 '22 05:04 LabhanshAgrawal

@LabhanshAgrawal I will definitely take a look into your link provider. Thanks for the pointer!

r10r avatar May 13 '22 08:05 r10r