← Back to team overview

elementary-dev-community team mailing list archive

Re: Pantheon Terminal clickable protocols

 

2012/9/23 David Gomes <david@xxxxxxxxxxxxxxxx>

> Hey everyone,
>
> https://code.launchpad.net/~elementary-apps/pantheon-terminal/new-protocols
>
> If you have some free time, please check that branch and add some new
> protocols (or tell us about other ones with a reply to this email):
>
>
> this.clickable("""(http?|ftp?|https?|ftps?|irc?|sftp?|mailto?)://\S+""");
>
> The other day we discussed this on IRC and shnatsel and voldyman told me
> about lots of protocols. The channel wasn't being logged at the time and I
> forgot some of the protocols they suggested.
>

The following URI schemes are relevant in a terminal:

ldap, ldaps, nfs, smb, rsync, ssh, rlogin, telnet, git, git+ssh, bzr,
bzr+ssh, svn, svn+ssh

Depending on the regexp syntax (and you seem to have a really weird one
here, with "?" after every URI option - that typically makes the last
character optional) and implementation details, you also might want to add
matching a delimiter before the URI scheme, so that "omgwtfhttp://"; won't
be treated as a URl.

-- 
Sergey "Shnatsel" Davidoff
OS architect @ elementary

Follow ups

References