diff options
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r-- | src/core/wee-command.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 962d69f97..acde2d3cc 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -7435,15 +7435,17 @@ command_init () " 9. a modifier (format: \"modifier:name,data,string\")\n" " 10. an info (format: \"info:name,arguments\", arguments are " "optional)\n" - " 11. current date/time (format: \"date\" or \"date:format\")\n" - " 12. an environment variable (format: \"env:XXX\")\n" - " 13. a ternary operator (format: " + " 11. a base 16/32/64 encoded/decoded string (format: " + "\"base_encode:base,xxx\" or \"base_decode:base,xxx\")\n" + " 12. current date/time (format: \"date\" or \"date:format\")\n" + " 13. an environment variable (format: \"env:XXX\")\n" + " 14. a ternary operator (format: " "\"if:condition?value_if_true:value_if_false\")\n" - " 14. result of an expression with parentheses and operators " + " 15. result of an expression with parentheses and operators " "+ - * / // % ** (format: \"calc:xxx\")\n" - " 15. an option (format: \"file.section.option\")\n" - " 16. a local variable in buffer\n" - " 17. a hdata name/variable (the value is automatically converted " + " 16. an option (format: \"file.section.option\")\n" + " 17. a local variable in buffer\n" + " 18. 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" @@ -7481,6 +7483,8 @@ command_init () " /eval -n ${repeat:5,-} ==> -----\n" " /eval -n ${length:test} ==> 4\n" " /eval -n ${calc:(5+2)*3} ==> 21\n" + " /eval -n ${base_encode:64,test} ==> dGVzdA==\n" + " /eval -n ${base_decode:64,dGVzdA==} ==> test\n" "\n" "Examples (conditions):\n" " /eval -n -c ${window.buffer.number} > 2 ==> 0\n" |