zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Mention _numbers in completion guide
@ 2022-03-29  4:41 Matthew Martin
  0 siblings, 0 replies; only message in thread
From: Matthew Martin @ 2022-03-29  4:41 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-29  4:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29  4:41 PATCH: Mention _numbers in completion guide Matthew Martin

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).