summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-02-17 13:23:38 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-02-17 13:23:38 +0100
commit6659bf1642160b0da5f4f0c747afbacbbe11f210 (patch)
tree2616e984ee38a01da5441867971179b19f0fcedf /src/core
parentb3a214252b73c3390652d42ea7ffdf18db68fceb (diff)
downloadweechat-6659bf1642160b0da5f4f0c747afbacbbe11f210.zip
core: display the 3 variants for "${split}" and "${split_shell}" in /help eval
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index f901fdffe..277b4bddd 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -8312,10 +8312,14 @@ command_init ()
N_(" - ${length:string}: the length of the string (number of UTF-8 chars)"),
N_(" - ${lengthscr:string}: the length of the string on screen "
"(sum of the width of each UTF-8 char displayed on screen, colors codes are ignored)"),
- N_(" - ${split:n,separators,flags,string}: split of the string "
- "(n can be an integer ≥ 1, an integer ≤ -1, \"count\" or \"random\")"),
- N_(" - ${split_shell:n,string}: split of shell arguments "
- "(n can be an integer ≥ 1, an integer ≤ -1, \"count\" or \"random\")"),
+ N_(" - ${split:N,separators,flags,string}: Nth item of the split string "
+ "(N is an integer ≥ 1 or ≤ -1, if negative, counts from the last item)"),
+ N_(" - ${split:random,separators,flags,string}: random item of the split string"),
+ N_(" - ${split:count,separators,flags,string}: number of items of the split string"),
+ N_(" - ${split_shell:N,string}: Nth item of the split shell arguments "
+ "(N is an integer ≥ 1 or ≤ -1, if negative, counts from the last item)"),
+ N_(" - ${split_shell:random,string}: random item of the split shell arguments"),
+ N_(" - ${split_shell:count,string}: number of items of the split shell arguments"),
N_(" - ${color:name}: the color (see \"Plugin API reference\", function \"color\")"),
N_(" - ${modifier:name,data,string}: the modifier"),
N_(" - ${info:name,arguments}: the info (arguments are optional)"),