When hovering the mouse pointer over a URL, Kitty includes characters (in my case the ) closing bracket) that aren’t intended to be part of the URL and, clicking on it, navigates to an invalid address: https://sqlalche.me/e/14/qzyx)
However, it’s open to debate whether this really is a “bug”. Considering RFC3986 and in particular 2.2 defines ) (amongst other characters) as a sub-delims which is then a legal character for some of the url parts (section 3). Whether that applies to the HTTP scheme I’ve not yet explored.
I suspect that Kitty uses a URL regex in which case this probably can’t be imporved without taking textual context into consideration. In Python, the URL would be valid:
Describe the bug
When hovering the mouse pointer over a URL, Kitty includes characters (in my case the
)
closing bracket) that aren’t intended to be part of the URL and, clicking on it, navigates to an invalid address:https://sqlalche.me/e/14/qzyx)
However, it’s open to debate whether this really is a “bug”. Considering RFC3986 and in particular 2.2 defines
)
(amongst other characters) as asub-delims
which is then a legal character for some of the url parts (section 3). Whether that applies to the HTTP scheme I’ve not yet explored.I suspect that Kitty uses a URL regex in which case this probably can’t be imporved without taking textual context into consideration. In Python, the URL would be valid:
To Reproduce
I think this should work:
and then hover over the URLs.
Screenshots
Environment details
Additional context
Same behavior as described above.