ClickableUrls_SublimeText icon indicating copy to clipboard operation
ClickableUrls_SublimeText copied to clipboard

Configurable URL REGEX

Open jduv opened this issue 9 years ago • 3 comments

Hi.

This may defeat the purpose of the plugin, but I'm looking to expand the protocols list supported. For example, if I had an ftp:\ url or an airmail:\ url the plugin won't highlight. I can obviously fork and do this myself in another package, but I thought it may be an improvement to the existing plugin that you might be interested in implementing. Plus, shouldn't be too tough to allow a comma separated list of protocols in config and build the regex dynamically.

Thoughts?

jduv avatar Feb 09 '16 17:02 jduv

I entirely support this idea, but you'll probably need to change the way URLs are opened right now (with the webbrowser module), and it has to remain cross-platform.

leonid-shevtsov avatar Feb 09 '16 20:02 leonid-shevtsov

Excellent. I'll look into it. I'm no python expert--but I've been meaning to learn a little more. Will send a PR when I complete--likely over the weekend.

jduv avatar Feb 09 '16 20:02 jduv

Weekend? It’s December already!

sergeevabc avatar Dec 29 '16 15:12 sergeevabc