diff options
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/autogen/user/weechat_commands.asciidoc | 4 | ||||
-rw-r--r-- | doc/en/weechat_user.en.asciidoc | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/en/autogen/user/weechat_commands.asciidoc b/doc/en/autogen/user/weechat_commands.asciidoc index d05a63569..d758b3fa1 100644 --- a/doc/en/autogen/user/weechat_commands.asciidoc +++ b/doc/en/autogen/user/weechat_commands.asciidoc @@ -286,8 +286,10 @@ Some variables are replaced in expression, using the format ${variable}, variabl 8. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. Format for hdata can be one of following: hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) - hdata[list].var1.var2...: start with a hdata using a list, for example: + hdata[list].var1.var2...: start with a hdata using a list/pointer, for example: ${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers + hdata[pointer].var1.var2...: start with a hdata using a list, for example: + ${buffer[0x1234abcd].full_name}: full name of the buffer with this pointer (can be used in triggers) ${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". diff --git a/doc/en/weechat_user.en.asciidoc b/doc/en/weechat_user.en.asciidoc index fb28f98de..b638262ce 100644 --- a/doc/en/weechat_user.en.asciidoc +++ b/doc/en/weechat_user.en.asciidoc @@ -3238,6 +3238,13 @@ is added in hashtable: | arguments | string | Arguments of command (includes value of 'channel') |=== +When the data is a pointer, the variable `tg_signal_data` can be used like this +to read a hdata property (in this example this is a pointer on a buffer): + +---- +${buffer[${tg_signal_data}].full_name} +---- + [[trigger_data_hsignal]] ===== Hsignal |