.. _plugin-format: The Format plugin ================= .. _command-upper: upper ^^^^^^^^^^^^ Returns ** uppercased. .. _command-bold: bold ^^^^^^^^^^^ Returns ** bolded. .. _command-format: format [ ...] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expands a Python-style format string using the remaining args. Just be sure always to use %s, not %d or %f or whatever, because all the args are strings. .. _command-color: color [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Returns ** with foreground color ** and background color ** (if given) .. _command-repr: repr ^^^^^^^^^^^ Returns the text surrounded by double quotes. .. _command-replace: replace ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Replaces all non-overlapping occurrences of ** with ** in **. .. _command-capitalize: capitalize ^^^^^^^^^^^^^^^^^ Returns ** capitalized. .. _command-underline: underline ^^^^^^^^^^^^^^^^ Returns ** underlined. .. _command-lower: lower ^^^^^^^^^^^^ Returns ** lowercased. .. _command-cut: cut ^^^^^^^^^^^^^^^^^ Cuts ** down to ** by chopping off the rightmost characters in excess of **. If ** is a negative number, it chops that many characters off the end of **. .. _command-join: join [ ...] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Joins all the arguments together with **. .. _command-reverse: reverse ^^^^^^^^^^^^^^ Returns ** in reverse-video. .. _command-title: title ^^^^^^^^^^^^ Returns ** titlecased. .. _command-field: field ^^^^^^^^^^^^^^^^^^^^^ Returns the **th space-separated field of **. I.e., if text is "foo bar baz" and ** is 2, "bar" is returned. .. _command-concat: concat ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Concatenates two strings. Do keep in mind that this is *not* the same thing as join "", since if ** contains spaces, they won't be removed by concat. .. _command-translate: translate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Replaces ** with ** in **. The first and second arguments must necessarily be the same length.