Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Mention _numbers in completion guide



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