Suggested improvements for URI matching
Submitted by Tony Houghton
Link to original bug (#793940)
Description
I've been using gnome-terminal as a template for roxterm's URI matching and I noticed a few things you might like to improve:
ROXTerm's old URI matching had a feature that may have been originally discovered by accident, but I retained because at least one user said they found it useful. It has separate patterns for URLs with and without a pathname component. If the regex without the pathname is added before the other one, users can highlight just the part of the URL from the start to the end of the hostname (or port), omitting the pathname, while the whole URL only gets matched when the pointer is over the pathname component.
mailto URIs can include additional headers, especially Subject, and apparently even a body. I think it would be a good idea to support these.
ROXTerm used to match filenames without a leading file://, this was specifically asked for by a user. I haven't bothered with that in the new version, out of laziness really. Any thoughts on whether this is a good idea? I thought it might be a good idea to match absolute paths, constructing the regex at run-time, based on the contents of the root directory. Matching paths beginning with ~ would be useful too.