From fdd39c6b97683ad6cdb009e2518baa5d2fc9b16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 6 Apr 2020 20:49:17 +0200 Subject: buflist: evaluate option buflist.look.sort (closes #1465) The evaluation allows to use different sort for the bar items, for example with such value: ${if:${bar_item.name}==buflist?number:short_name} This sorts by number on the first bar item and by short name on the two other bar items. --- src/plugins/buflist/buflist.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/buflist/buflist.h') diff --git a/src/plugins/buflist/buflist.h b/src/plugins/buflist/buflist.h index 85577d40d..f13637de5 100644 --- a/src/plugins/buflist/buflist.h +++ b/src/plugins/buflist/buflist.h @@ -25,6 +25,8 @@ #define BUFLIST_BAR_NAME "buflist" +struct t_gui_bar_item; + extern struct t_weechat_plugin *weechat_buflist_plugin; extern struct t_hdata *buflist_hdata_window; @@ -38,6 +40,6 @@ extern void buflist_add_bar (); extern void buflist_buffer_get_irc_pointers (struct t_gui_buffer *buffer, void **irc_server, void **irc_channel); -extern struct t_arraylist *buflist_sort_buffers (); +extern struct t_arraylist *buflist_sort_buffers (struct t_gui_bar_item *item); #endif /* WEECHAT_PLUGIN_BUFLIST_H */ -- cgit v1.2.3