summaryrefslogtreecommitdiff
path: root/doc/en/autogen/user/weechat_commands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en/autogen/user/weechat_commands.txt')
-rw-r--r--doc/en/autogen/user/weechat_commands.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt
index ab2040949..e2eb66896 100644
--- a/doc/en/autogen/user/weechat_commands.txt
+++ b/doc/en/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