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:
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user