Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Mention _numbers in completion guide
- X-seq: zsh-workers 49907
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Mention _numbers in completion guide
- Date: Mon, 28 Mar 2022 23:41:06 -0500
- Archived-at: <https://zsh.org/workers/49907>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
Seems _numbers should be mentioned to nudge people in that direction.
diff --git a/Etc/completion-style-guide b/Etc/completion-style-guide
index 4fa0040a5..f7dcae230 100644
--- a/Etc/completion-style-guide
+++ b/Etc/completion-style-guide
@@ -75,6 +75,8 @@ but use:
To indicate a default value, use square brackets:
'--timeout[specify connection timeout]:timeout (ms) [5000]'
These two conventions can be used together or individually as appropriate.
+Alternatively the `_numbers' function may be used:
+ '--timeout[specify connection timeout]: :_numbers -u ms -d 5000 timeout'
Group descriptions should be singular because only one thing is being
completed even though many may be listed. This applies even where you
Messages sorted by:
Reverse Date,
Date,
Thread,
Author