From 71f813af289ff4df6e4721f56c907d78aa609e69 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 1 Aug 2012 01:06:57 +0200 Subject: Add a roster_group_sort option, which works like roster_sort - defaults to "name" (sort by group name) - document it - also, micro-optimize get_nb_connected_contacts() --- data/default_config.cfg | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/default_config.cfg b/data/default_config.cfg index aedd2413..f75ae14b 100644 --- a/data/default_config.cfg +++ b/data/default_config.cfg @@ -229,13 +229,24 @@ roster_show_offline = false # - reverse: reverse the sorting # - jid: sort by JID (alphabetical order) # - show: sort by show (available/away/xa/…) -# - name: Sort by roster name (if no name, then the bare jid is used) -# - resource: Sort by resource number +# - name: sort by roster name (if no name, then the bare jid is used) +# - resource: sort by resource number # You can arrange them however you like, and you have to separate them with # underscores "_". Keep in mind that if there are more than 3 or 4 your sorting # is most likely inefficient. roster_sort = jid_show +# How to sort the roster groups. +# The principles are the same as roster_sort. +# Available methods are: +# - reverse: reverse the sorting +# - name: sort by group name (alphabetical order) +# - fold: sort unfolded/folded +# - connected: sort by number of connected contacts +# - size: sort by group size +# - none: put the "none" group (if any) at the end of the list +roster_group_sort = name + # The terminal can beep on various event. Put the event you want in a list # (separated by spaces). # The events can be -- cgit v1.2.3