[Pidgin] #5447: Buddy list sort by recent activity

Pidgin trac at pidgin.im
Fri Apr 4 20:55:38 EDT 2008


#5447: Buddy list sort by recent activity
-------------------------------------+--------------------------------------
 Reporter:  cconnett                 |       Type:  patch
   Status:  new                      |   Priority:  minor
Component:  pidgin (gtk)             |    Version:  2.4.1
 Keywords:  buddylist sort activity  |    Pending:  0    
-------------------------------------+--------------------------------------
 This is a patch I wrote for myself, and it's been very nice for me, so I
 figured I'd toss it out here.  It implements a new buddy list sorting
 method.  Buddies are sorted by their recent activity, i.e., how much text
 you have exchanged recently.

 It works similarly to the log size sorting method, but instead of counting
 number of bytes in a particular conversation, it counts bytes in the
 conversation decayed exponentially by age, with a half-life of 14 days.
 Thus, people you've started talking to a lot in recent days will climb to
 the top of the buddy list.  Since recent text counts more, new friends
 you've been talking with recently will claim the top spots, instead of the
 person you've known a long time and who has the largest log.

 The code is not as beautiful as I would like, because I resisted the
 temptation to change other code and tried to implement this only through
 adding code.  As a result, I copied and pasted existing code.  If the idea
 is well-recieved, I love to hear suggestions on how to make the code fit
 in better.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/5447>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list