diff options
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/autogen/user/weechat_commands.adoc | 2 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 17 |
2 files changed, 15 insertions, 4 deletions
diff --git a/doc/it/autogen/user/weechat_commands.adoc b/doc/it/autogen/user/weechat_commands.adoc index 0c052b596..322fba90e 100644 --- a/doc/it/autogen/user/weechat_commands.adoc +++ b/doc/it/autogen/user/weechat_commands.adoc @@ -301,7 +301,7 @@ Some variables are replaced in expression, using the format ${variable}, variabl 3. a string with chars to hide (format: "hide:char,string") 4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string") or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string") - 5. a reversed string (format: "rev:xxx") + 5. a reversed string (format: "rev:xxx" or "revscr:xxx") 6. a repeated string (format: "repeat:count,string") 7. length of a string (format: "length:xxx" or "lengthscr:xxx") 8. a color (format: "color:xxx", see "Plugin API reference", function "color") diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index d97593917..39ed5c073 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -2572,9 +2572,20 @@ expanded to last): | `+${rev:xxx}+` + _(WeeChat ≥ 2.2)_ | - Reversed string. | - `+${rev:Hello, world!}+` | - `+!dlrow ,olleH+` + Reversed string (color codes are reversed, so the string should not contain + color codes). | + `+${rev:Hello, world!}+` + + `+${rev:Hello, ${color:red}world!}+` | + `+!dlrow ,olleH+` + + `+!dlrow30F ,olleH+` (no color, the color code is reversed) + +| `+${revscr:xxx}+` + + _(WeeChat ≥ 2.7)_ | + Reversed string for screen, color codes are not reversed. | + `+${revscr:Hello, world!}+` + + `+${revscr:Hello, ${color:red}world!}+` | + `+!dlrow ,olleH+` + + `+!dlrow ,olleH+` (`pass:[ ,olleH]` in red) | `+${repeat:count,string}+` + _(WeeChat ≥ 2.3)_ | |