diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-06 20:49:17 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-06 20:49:17 +0200 |
commit | fdd39c6b97683ad6cdb009e2518baa5d2fc9b16b (patch) | |
tree | fa8bb7af30ceb3861b47ee231ce2bf6f54657009 /src/plugins/buflist/buflist.h | |
parent | a072d769fd212f965dd8760168c04f5e2c113a9d (diff) | |
download | weechat-fdd39c6b97683ad6cdb009e2518baa5d2fc9b16b.zip |
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.
Diffstat (limited to 'src/plugins/buflist/buflist.h')
-rw-r--r-- | src/plugins/buflist/buflist.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |