Character counting plugin for Pidgin

Someone asked if there was a plugin for displaying the character count of the current message in a Pidgin chat window’s input widget, which would be useful when using Twitter via IM, to know if you’re going over the 140 character limit. I looked things over and came up with this simple plugin after about two hours of hacking … it places the current character count on the right-hand side of the GtkIMHtmlToolbar:

Screenshot of Pidgin 2.2.2 with the convcharcount plugin

I’m inclding the new plugin’s source as a diff/patch to the Pidgin source, and a pre-built DLL binary for Win32:

For those of you on Win32, just unzip the .zip file into your C:\Program Files\Pidgin\plugins directory. Then, go into your Buddy List window and select “Tools -> Plugins,” then click the checkbox next to “Conv. input chars count“.  That’s it!

Let me know what you think of the plugin. Thanks!

UPDATE: I’ve finally gotten around to spinning a Debian 4.0 etch .deb for i386. If you’re on Debian, give it a try.

UPDATE: I’ve also spun a Fedora 8 RPM for i386.

Tags: , , ,

58 Responses to “Character counting plugin for Pidgin”

  1. [...] It’s kind of a no brainer to guess what it does. It counts the characters contained within the input area of Pidgin and shows the count on the right side of the bar where the emoticons, formatting and the like are located. Get it here [...]

  2. UG says:

    Good stuff Dossy, thanks. (Yeah, it’s /that/ UG from #efnet.)

  3. Cyde Weys says:

    Thanks so much, this is exactly what I was looking for for posting tweets through Identica’s Google Talk bot.

  4. David says:

    Very cool. Perfect for twitter and texting cell phones.

  5. shadowflash says:

    This is awesome! Works fine with no problems.
    But can you make another plugin that when typing a “/” command, change your regular text to text like this?

    αв¢∂єƒgнιנкℓмησρqяѕтυνωχуz

    (e.g. “/text blablabla” becomes вℓαвℓαвℓα to whoever you’re talking to)
    thanks

  6. Vinci says:

    I also use it and am quite happy with it. If you want to do more coding I would have some ideas:
    a) Warn the user, if there are more characters or maybe also less than 4 characters before send is accepted
    b) The web interface if identi.ca shortes the URLs which this can not do. Maybe this is place for a second plugin that might already exist?
    c) If I want to reply to a message there is yet no easy way to do this. If i copy and paste a user name it has an URL in it.

  7. Nathan says:

    Works like a charm. This is one of those things that you know you wanted, but didn’t expect. Thanks for making Pidgin more valuable!

Leave a Reply