*feature request* url shortening

Bug #599347 reported by OutlawRamRod
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
heybuddy
Fix Released
Low
jezra

Bug Description

I don't know if this fits into the heybuddy philosophy of being a lean mean denting machine but....

it would be nice if pasted url's could be shortened automatically.

Of course I have absolutely no idea how to do this. I imagine at some point the dent would need to be parsed for urls and then shortened. Of course we run into the character limit for dents. At present, heybuddy stops adding characters after 140 characters. So if a dent hits 140 characters maybe it could be checked for urls. If there are any present, then they could be shortened automatically and users could be given the option of continuing to enter text or sending the dent by using 'enter.' This would also mean that heybuddy would need another configuration option to support different url shortening services.

Revision history for this message
Vinzenz Vietzke (vinzv) wrote :

Absolutely. I love heybuddy but it's a real mess to copy long urls to - let's say - ur1.ca and to copy the shortened url back. So having that done automatically would be a great improvement!

Revision history for this message
jezra (jezra) wrote :

definitely on the agenda for a future release

Changed in heybuddy:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → jezra (jezra)
Revision history for this message
Vinzenz Vietzke (vinzv) wrote :

I found a code snippet at arstechnica.com which could be useful. It shortens with is.gd immediately on pasting a url.
http://arstechnica.com/open-source/guides/2009/07/howto-building-textbox-url-shortener-with-pygtk.ars

Sadly I don't know any python, so I can't implement it myself. :(

Revision history for this message
jezra (jezra) wrote :

Thanks for the link

This should be fairly easy to implement and there would be two times the input would be checked:
1. on paste, check if text is URL that is greater than 20 characters in length
2. while typing a new status, when reaching the maximum number of status characters, check the status for URLs greater than 20 chars and shorten them.

Revision history for this message
jezra (jezra) wrote :

booyah

Changed in heybuddy:
status: Confirmed → Fix Committed
jezra (jezra)
Changed in heybuddy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.