summaryrefslogtreecommitdiff
path: root/doc/pl/autogen/user
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-05-19 07:39:23 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-05-19 07:39:23 +0200
commitb522060cef3a5cd00ef35688e58cc397e4cc806b (patch)
tree57d01fe7bd65dbea65b2d7eb886536a930c38e21 /doc/pl/autogen/user
parent138af6e7dd146696de82cb4ce452028e7107c1f0 (diff)
downloadweechat-b522060cef3a5cd00ef35688e58cc397e4cc806b.zip
buflist: add variable ${current_buffer} in bar item evaluation
Diffstat (limited to 'doc/pl/autogen/user')
-rw-r--r--doc/pl/autogen/user/buflist_commands.adoc1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/pl/autogen/user/buflist_commands.adoc b/doc/pl/autogen/user/buflist_commands.adoc
index 64c67ddf2..b32dce5fb 100644
--- a/doc/pl/autogen/user/buflist_commands.adoc
+++ b/doc/pl/autogen/user/buflist_commands.adoc
@@ -28,6 +28,7 @@ The following variables can be used in these options:
- irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
- extra variables added by buflist for convenience:
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
+ - ${current_buffer}: a boolean ("0" or "1"), "1" if this is the current buffer; it can be used in a condition: ${if:${current_buffer}?...:...}
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)