From e05f6fb6c0dd1f65487b2a4efc7fbbb630ed9032 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 4 Jun 2020 20:31:51 -0700 Subject: [PATCH] doc/Factoids.md: add :join() to expansion-modifiers --- doc/Factoids.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/Factoids.md b/doc/Factoids.md index 459e75e9..d6e24ebc 100644 --- a/doc/Factoids.md +++ b/doc/Factoids.md @@ -409,6 +409,7 @@ Selection Modifier | Description `:-sort` | Sorts the selected list in descending order. `:comma` | Converts a selected list to a comma-separated list. `:enumerate` | Converts a selected list to a comma-separated list with `and` replacing the final comma. +`:join([s])` | Converts a selected list to an `s`-separated list. `s` is a string optionally enclosed in quotes. !echo $colors:pick(5):comma red, bright yellow, blue, dark purple, orange @@ -416,6 +417,12 @@ Selection Modifier | Description !echo $colors:pick(5):enumerate blue, green, dark purple, orange and bright yellow + !echo $colors:pick(5):join('::') + red::orange::bright yellow::green + + !echo $colors:pick(3):join() + greenorangeblue + And finally, text modifiers alter the selected values. !echo $colors:uc