From: SourceForge.net <no...@so...> - 2004-12-24 23:45:34
|
Plugins item #1026860, was opened at 2004-09-12 16:20 Message generated for change (Comment added) made by spam3234 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390395&aid=1026860&group_id=235 Category: None Group: None Status: Open Priority: 5 Submitted By: David Perry (perryda) Assigned to: Nobody/Anonymous (nobody) Summary: Linkify - perl plugin to linkify text Initial Comment: ABOUT ChatZilla (a part of Mozilla) had a neat feature that I missed in GAIM: whenever someone typed something like "bug 1234", it would wrap it in a link to http://bugzilla/show_bug.cgi?id=1234 , so I could just click on it to see the relevant bug. I liked the feature enough that I decided to write a plugin for GAIM to do it. Of course, there's no challenge in just creating bugzilla links, so I spent too much time making a general- purpose user-definable link-wrapping script. (: HOW TO USE IT Create a text file in ~/.gaim called linkify.cfg . Within it, put regexp-URL pairs like this: # Lines with '#' are comments bug\s+([0-9]+) http://bugzilla/show_bug.cgi?id=$1 Backreferences to the regexp are substituted into the URL as needed. Only you (and your GAIM logs, if you use them) will see the linkified text; other people in the conversation won't get the extra link garbage on their screen. (Which is just as well, since it's probably text they typed which is being linkified!) This also means that you get handy links even in IRC chats, where HTML is meaningless. Linkify won't linkify text that's already in an <a> tag, or text that's part of an HTML tag. Linkified text is given the class "gaim-linkify" to distinguish it from other links. CREDITS Thanks to Nicholas Killewald for help allowing user-definable backreferences. Thanks to the GAIM team for making such a useful program! ---------------------------------------------------------------------- Comment By: Spam3234 (spam3234) Date: 2004-12-24 18:45 Message: Logged In: YES user_id=1027350 Gaim seems to freeze every time I try to enable this plugin. Is there a newer version out? ---------------------------------------------------------------------- Comment By: David Perry (perryda) Date: 2004-09-16 15:13 Message: Logged In: YES user_id=77962 Version 0.004 adds an explicit 'returnj' to each callback so they don't eat messages. ---------------------------------------------------------------------- Comment By: David Perry (perryda) Date: 2004-09-14 14:24 Message: Logged In: YES user_id=77962 Version 0.003 fixes a bug where already-linkified text could get re-linkified (possibly even corrupting the tags) if multiple rules applied to the same chunk of text. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390395&aid=1026860&group_id=235 |