diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-08-17 08:16:08 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-08-17 08:17:11 +0200 |
commit | 39e5b0574cff8ade50ff6ec95feda57b1c331b4e (patch) | |
tree | 33f06c631c8cd33b517985db340e32763a386aa7 /src/plugins/buflist | |
parent | 05744f3b61ef3346f79d41551c470e8d09033ce8 (diff) | |
download | weechat-39e5b0574cff8ade50ff6ec95feda57b1c331b4e.zip |
buflist: mention variables available for option buflist.look.display_conditions in its help and in /help buflist (closes #1393)
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r-- | src/plugins/buflist/buflist-command.c | 15 | ||||
-rw-r--r-- | src/plugins/buflist/buflist-config.c | 4 |
2 files changed, 15 insertions, 4 deletions
diff --git a/src/plugins/buflist/buflist-command.c b/src/plugins/buflist/buflist-command.c index 1aea61eba..d6425e4b9 100644 --- a/src/plugins/buflist/buflist-command.c +++ b/src/plugins/buflist/buflist-command.c @@ -83,9 +83,18 @@ buflist_command_init () "current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" - "The following variables can be used in these options:\n" - " - bar item data (see hdata \"bar_item\" in API doc for a complete " - "list), for example:\n" + "The following variables can be used in the option " + "\"buflist.look.display_conditions\" (see below for the " + "description):\n" + " - bar_item\n" + " - buffer\n" + " - irc_server\n" + " - irc_channel\n" + "\n" + "The following variables can be used in the options " + "\"buflist.format.*\":\n" + " - bar item data (see hdata \"bar_item\" in API doc for a " + "complete list), for example:\n" " - ${bar_item.name}\n" " - buffer data (see hdata \"buffer\" in API doc for a complete " "list), for example:\n" diff --git a/src/plugins/buflist/buflist-config.c b/src/plugins/buflist/buflist-config.c index 148b0fbd6..556b299af 100644 --- a/src/plugins/buflist/buflist-config.c +++ b/src/plugins/buflist/buflist-config.c @@ -440,7 +440,9 @@ buflist_config_init () buflist_config_file, ptr_section, "display_conditions", "string", N_("conditions to display a buffer " - "(note: content is evaluated, see /help buflist); for example " + "(note: content is evaluated, see /help buflist); variables " + "available are: bar_item, buffer, irc_server and irc_channel " + "(see /help buflist for more information); for example " "to hide server buffers if they are merged with core buffer: " "\"${buffer.hidden}==0 && ((${type}!=server && " "${buffer.full_name}!=core.weechat) || ${buffer.active}==1)\""), |