diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-06-02 15:48:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-06-02 16:01:14 +0200 |
commit | 1abf4040f11ecf626dc79a3d0fb810b8efd6252e (patch) | |
tree | d561ec2e482eef9b8b9981edf2231e3a1b03486c /doc/it | |
parent | ab9a0ec2e63d47a3663b08690848ec7b87d3d4fe (diff) | |
download | weechat-1abf4040f11ecf626dc79a3d0fb810b8efd6252e.zip |
core: add reverse of string in evaluation of expressions with "rev:" (closes #1200)
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/autogen/user/weechat_commands.adoc | 17 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 6 |
2 files changed, 15 insertions, 8 deletions
diff --git a/doc/it/autogen/user/weechat_commands.adoc b/doc/it/autogen/user/weechat_commands.adoc index 62e977628..e3541afb5 100644 --- a/doc/it/autogen/user/weechat_commands.adoc +++ b/doc/it/autogen/user/weechat_commands.adoc @@ -296,14 +296,15 @@ 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 color (format: "color:xxx", see "Plugin API reference", function "color") - 6. an info (format: "info:name,arguments", arguments are optional) - 7. current date/time (format: "date" or "date:format") - 8. an environment variable (format: "env:XXX") - 9. a ternary operator (format: "if:condition?value_if_true:value_if_false") - 10. an option (format: "file.section.option") - 11. a local variable in buffer - 12. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. + 5. a reversed string (format: "rev:xxx") + 6. a color (format: "color:xxx", see "Plugin API reference", function "color") + 7. an info (format: "info:name,arguments", arguments are optional) + 8. current date/time (format: "date" or "date:format") + 9. an environment variable (format: "env:XXX") + 10. a ternary operator (format: "if:condition?value_if_true:value_if_false") + 11. an option (format: "file.section.option") + 12. a local variable in buffer + 13. 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: diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 2c02fce47..2c17ed3d2 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -2381,6 +2381,12 @@ expanded to last): `+thi…+` + `+こ>>+` +| `+${rev:xxx}+` + + (_WeeChat ≥ 2.2_) | + Reversed string. | + `+${rev:Hello, world!}+` | + `+!dlrow ,olleH+` + | `+${re:N}+` + (_WeeChat ≥ 1.1_) | Regex captured group: `0` = whole string matching, `1` to `99` = group |