diff options
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r-- | src/core/wee-command.c | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 7d218ae6d..211795ac2 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -7734,38 +7734,40 @@ command_init () " 3. an evaluated sub-string (format: \"eval:xxx\")\n" " 4. an evaluated condition (format: \"eval_cond:xxx\")\n" " 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n" - " 6. a string with chars to hide (format: \"hide:char,string\")\n" - " 7. a string with max chars (format: \"cut:max,suffix,string\" " + " 6. a string converted to lower case (format: \"lower:xxx\")\n" + " 7. a string converted to upper case (format: \"upper:xxx\")\n" + " 8. a string with chars to hide (format: \"hide:char,string\")\n" + " 9. a string with max chars (format: \"cut:max,suffix,string\" " "or \"cut:+max,suffix,string\")\n" " or max chars displayed on screen " "(format: \"cutscr:max,suffix,string\" or " "\"cutscr:+max,suffix,string\")\n" - " 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n" - " 9. a repeated string (format: \"repeat:count,string\")\n" - " 10. length of a string (format: \"length:xxx\" or " + " 10. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n" + " 11. a repeated string (format: \"repeat:count,string\")\n" + " 12. length of a string (format: \"length:xxx\" or " "\"lengthscr:xxx\")\n" - " 11. split of a string (format: " + " 13. split of a string (format: " "\"split:number,separators,flags,xxx\")\n" - " 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n" - " 13. a color (format: \"color:xxx\", see \"Plugin API " + " 14. split of shell argmuents (format: \"split_shell:number,xxx\")\n" + " 15. a color (format: \"color:xxx\", see \"Plugin API " "reference\", function \"color\")\n" - " 14. a modifier (format: \"modifier:name,data,string\")\n" - " 15. an info (format: \"info:name,arguments\", arguments are " + " 16. a modifier (format: \"modifier:name,data,string\")\n" + " 17. an info (format: \"info:name,arguments\", arguments are " "optional)\n" - " 16. a base 16/32/64 encoded/decoded string (format: " + " 18. a base 16/32/64 encoded/decoded string (format: " "\"base_encode:base,xxx\" or \"base_decode:base,xxx\")\n" - " 17. current date/time (format: \"date\" or \"date:format\")\n" - " 18. an environment variable (format: \"env:XXX\")\n" - " 19. a ternary operator (format: " + " 19. current date/time (format: \"date\" or \"date:format\")\n" + " 20. an environment variable (format: \"env:XXX\")\n" + " 21. a ternary operator (format: " "\"if:condition?value_if_true:value_if_false\")\n" - " 20. result of an expression with parentheses and operators " + " 22. result of an expression with parentheses and operators " "+ - * / // % ** (format: \"calc:xxx\")\n" - " 21. a random integer number (format: \"random:min,max\")\n" - " 22. a translated string (format: \"translate:xxx\")\n" - " 23. define a user variable (format: \"define:name,value\")\n" - " 24. an option (format: \"file.section.option\")\n" - " 25. a local variable in buffer\n" - " 26. a hdata name/variable (the value is automatically converted " + " 23. a random integer number (format: \"random:min,max\")\n" + " 24. a translated string (format: \"translate:xxx\")\n" + " 25. define a user variable (format: \"define:name,value\")\n" + " 26. an option (format: \"file.section.option\")\n" + " 27. a local variable in buffer\n" + " 28. a hdata name/variable (the value is automatically converted " "to string), by default \"window\" and \"buffer\" point to current " "window/buffer.\n" "Format for hdata can be one of following:\n" @@ -7798,6 +7800,8 @@ command_init () " /eval -n ${window.buffer.full_name} ==> core.weechat\n" " /eval -n ${window.buffer.number} ==> 1\n" " /eval -n ${\\t} ==> <tab>\n" + " /eval -n ${lower:TEST} ==> test\n" + " /eval -n ${upper:test} ==> TEST\n" " /eval -n ${hide:-,${relay.network.password}} ==> --------\n" " /eval -n ${cut:3,+,test} ==> tes+\n" " /eval -n ${cut:+3,+,test} ==> te+\n" |