diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-09 15:35:54 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-09 15:35:54 +0100 |
commit | ff62f3edff3f2685652b09bc91f37be1f5ce1b6c (patch) | |
tree | 16a8c18803578cecc2f6a7416ef456705aa84ec5 /doc/it/autogen/user/weechat_commands.txt | |
parent | 652653ff8201d61cb3d9d019a7b6f8da3daf9850 (diff) | |
download | weechat-ff62f3edff3f2685652b09bc91f37be1f5ce1b6c.zip |
api: add support of infos with format `${info:name,arguments}` in function string_eval_expression and command /eval
Diffstat (limited to 'doc/it/autogen/user/weechat_commands.txt')
-rw-r--r-- | doc/it/autogen/user/weechat_commands.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt index 2ab3fb70a..c4f89bbb2 100644 --- a/doc/it/autogen/user/weechat_commands.txt +++ b/doc/it/autogen/user/weechat_commands.txt @@ -241,10 +241,11 @@ To force a string comparison, add double quotes around each expression, for exam "50" > "100" ==> 1 Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority : - 1. a color (format: color:xxx) - 2. an option (format: file.section.option) - 3. a local variable in buffer - 4. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. + 1. a color (format: "color:xxx") + 2. an info (format: "info:name,arguments", arguments are optional) + 3. an option (format: "file.section.option") + 4. a local variable in buffer + 5. 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: @@ -253,6 +254,7 @@ Format for hdata can be one of following: For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". Examples: + /eval -n ${info:version} ==> 0.4.3 /eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${window} ==> 0x2549aa0 /eval -n ${window.buffer} ==> 0x2549320 |