Donate Share

iTerm.app

Tracker: Patches

5 Improving URL extraction with Cmd+Click - ID: 2801693
Last Update: Attachment added ( knu )

The URL extraction algorithm _getURLForX implements can be improved the way
the following URL occurrences are picked correctly.

1. URL with a leading garbage part
> <URL:http://quux.example.org/faq/>

2. URL enclosed in parentheses
> Visit the site (http://foo.example.com) to register.

3. URL with a trailing period
> It's http://bar.example.com/.

4. URL folded between vertical lines that such program as visual screen
editor (Emacs, vim, etc.), MUA's, GNU screen, etc. uses to split the
screen
> .... |The URL is http://b\| ....
> .... |az.example.net/supp\| ....
> .... |ort.html | ....
Recognizing a URL like this greatly helps when you are reading mail,
joining IRC or browsing a website using a multi-pane terminal agent.


Attached is the patch to make iTerm.app recognize them all.


Akinori MUSHA ( knu ) - 2009-06-05 12:14

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
iTerm-improved_URL_extraction.patch the implementation Download

Change ( 1 )

Field Old Value Date By
File Added 329839: iTerm-improved_URL_extraction.patch 2009-06-05 12:14 knu