Xterm.js: Link matchers do not work with multi-line links

Created on 28 Apr 2015  ·  13Comments  ·  Source: xtermjs/xterm.js

arelinks help wanted typbug

Most helpful comment

I would like to take a stab at this. I have done a fair bit of js for past 2 years and am looking forward to get my first pull request. I can pick this up on the coming weekend if that is fine with everyone 😊

All 13 comments

Is there anyone looking into this issue? It's a killer for VS Code's integrated terminal.

+1

Hi @martellaj, right now this is not assigned to anyone, so no one is looking into this.

We will get on top of this, as soon as we find the required amount of time.

And of course PRs are always welcome 😁.

I believe all the pre-requisites for this are now done:

  • The buffer knows when lines are wrapped (at least on Linux/macOS)
  • There is a relatively fast method to grab the entire line as a string
  • Links no longer need to juggle the DOM so it will be possible to get multi-line lines with both parts reacting when hovering

I won't be able to pick this up any time soon. Here's what needs to be done for those interested:

We also want to make sure links work when the data goes off the screen to the right. This should be tackled at the same time as multi-line links

I would like to take a stab at this. I have done a fair bit of js for past 2 years and am looking forward to get my first pull request. I can pick this up on the coming weekend if that is fine with everyone 😊

@chirgjn by all means. As a hint on where to start you will need to have the MouseZone's support ranges that can span multiple lines, and then check if lines are marked with isWrapped and if so check for lines on the entire wrapped line and create the appropriate MouseZone. This will mostly involve working in Linkifier.ts and MouseZoneManager.ts

Thanks, picking this up this weekend 😃

@chirgjn any progress on this?

@bastichelaar it's one of the handful of things I want to get to next if a PR doesn't come in.

Hey, sorry for the late reply. I will get a PR ready today.

On Tue 27 Feb, 2018, 8:59 PM Daniel Imms, notifications@github.com wrote:

@bastichelaar https://github.com/bastichelaar it's one of the handful
of things I want to get to next if a PR doesn't come in.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xtermjs/xterm.js/issues/24#issuecomment-368916869,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADeQIqmu9RJPm29PJHZe0XU2trHAV8WWks5tZB9wgaJpZM4EKjoM
.

@chirgjn FYI I've started working on it and plan to finish it off in probably the next week or 2 https://github.com/xtermjs/xterm.js/pull/1303

@Tyriar thank you for the work on it, I'll check out your changes, maybe I'll be able to help out next time! 👍

Was this page helpful?
0 / 5 - 0 ratings