diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-19 14:47:59 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-19 14:47:59 +0200 |
commit | 0f8485f54e24d5ae152b4c1bd102ad14ca23d3c6 (patch) | |
tree | c013c593015e8b12427a27ccdaff083ed9bdc45f /src/plugins/buflist | |
parent | 60254ff48d05e4678c51b89ba6b601fe48d9e285 (diff) | |
download | weechat-0f8485f54e24d5ae152b4c1bd102ad14ca23d3c6.zip |
buflist: add example of format for two bar items using a ternary operator in /help buflist.format.buffer
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r-- | src/plugins/buflist/buflist-config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/buflist/buflist-config.c b/src/plugins/buflist/buflist-config.c index f71603f4c..a32826d86 100644 --- a/src/plugins/buflist/buflist-config.c +++ b/src/plugins/buflist/buflist-config.c @@ -541,7 +541,13 @@ buflist_config_init () buflist_config_file, ptr_section, "buffer", "string", N_("format of each line with a buffer " - "(note: content is evaluated, see /help buflist)"), + "(note: content is evaluated, see /help buflist); " + "example: standard format for bar item \"buflist\" and only the " + "buffer number between square brackets for other bar items " + "(\"buflist2\" and \"buflist3\"): " + "\"${if:${bar_item.name}==buflist?${format_number}${indent}" + "${format_nick_prefix}${color_hotlist}${format_name}:" + "[${number}]}\""), NULL, 0, 0, "${format_number}${indent}${format_nick_prefix}${color_hotlist}" "${format_name}", |