1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

buflist: add example of format for two bar items using a ternary operator in /help buflist.format.buffer

This commit is contained in:
Sébastien Helleu
2018-05-19 14:47:59 +02:00
parent 60254ff48d
commit 0f8485f54e
20 changed files with 177 additions and 56 deletions
+7 -1
View File
@@ -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}",