bubble-table icon indicating copy to clipboard operation
bubble-table copied to clipboard

Hyperlinks break the table

Open marinalimeira opened this issue 3 years ago • 2 comments

I am trying to add hyperlinks to my bubble-table, but OSC 8 hyperlinks don't work when inside the table.

I am using this function to create the link:

func hyperlink(text string, url string) string {
	return "\x1b]8;;" + url + "\x07" + text + "\x1b]8;;\x07"
}

You can see an example code in this Gist. It renders like this: Screenshot 2022-05-16 at 12 38 24

Same table, without hyperlinks: Screenshot 2022-05-16 at 12 39 23

marinalimeira avatar May 16 '22 10:05 marinalimeira

Apologies for the delay on responding to this, I've been a bit swamped by my day job. <3

I'm unfamiliar with OSC 8 hyperlinks and I've done some brief investigations. It appears there's an open issue regarding hyperlinks here as well in the underlying library that we use: https://github.com/muesli/reflow/issues/45

This may be difficult to fix on our end if the underlying library also contains this issue. Open to thoughts.

Evertras avatar May 28 '22 00:05 Evertras

No problem @Evertras! Thank you for taking a look into the issue.

I will follow the issue in reflow, indeed it's hard to fix it here if reflow breaks the text too.

marinalimeira avatar May 31 '22 11:05 marinalimeira