prawnsalad / KiwiIRC

This is **DEPRECATED**! Please go to https://github.com/kiwiirc/kiwiirc
https://kiwiirc.com
GNU Affero General Public License v3.0
891 stars 277 forks source link

Link message parts matching a pattern #911

Open Svetlana-T opened 7 years ago

Svetlana-T commented 7 years ago

Hi all. :-)

On some channels message parts matching a pattern are useful to link. For example, [[Foo]] to link to http://ru.wikipedia.org/wiki/Foo, or 'bug 45' to link to http://bugs.myproject.org/45. We could add a list of such regexes and corresponding URLs per-channel to the settings pane of KiwiIRC. This would give users the opportunity to read channels of respective projects in a more convenient, comfy way without having to type out bug numbers on URL bars by hand and without using channel bots which look out for the same patterns.

We could also allow people to pass such setting as an URL parameter, so that ru.wikipedia.org and myproject.org people can link newcomers to embedded kiwi instances which have the respective regexes enabled. This way users do not need to type these things out manually, and KiwiIRC does not need to maintain a huge list of all ever possible regexes in a global list.

As an example, ChatZilla links 'bug 546567' to the Mozilla bugzilla instance and this is convenient. It has per-chat settings of the 'bug URL'.

Please advise of your thoughts on this issue and if appropriate, add it in. Thank you in advance.

Regards, Svetlana.