zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#394577: zsh-beta: Completion of date does not work
       [not found] <20061021222237.GA15881@alea.gnuu.de>
@ 2007-04-14 20:00 ` Clint Adams
  2007-04-17  9:31   ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2007-04-14 20:00 UTC (permalink / raw)
  To: zsh-workers; +Cc: Jörg Sommer, 394577

On Sun, Oct 22, 2006 at 12:22:37AM +0200, Jörg Sommer wrote:
> Hi,
> 
> % date --ver<TAB>
> --version    -- Versionsinformation anzeigen und beenden
> % date --ver
> 
> but the text is not completed.

This improves things slightly.

Index: Completion/Unix/Command/_date
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_date,v
retrieving revision 1.4
diff -u -r1.4 _date
--- Completion/Unix/Command/_date	5 Dec 2005 14:16:09 -0000	1.4
+++ Completion/Unix/Command/_date	14 Apr 2007 19:59:14 -0000
@@ -43,6 +43,6 @@
 fi
 
 _arguments \
+  "$args[@]" \
   '-u[display or set time in UTC]' \
-  ':format or date' \
-  $args[@]
+  ':format or date'


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug#394577: zsh-beta: Completion of date does not work
  2007-04-14 20:00 ` Bug#394577: zsh-beta: Completion of date does not work Clint Adams
@ 2007-04-17  9:31   ` Oliver Kiddle
  2007-04-21  5:08     ` Clint Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2007-04-17  9:31 UTC (permalink / raw)
  To: zsh-workers, Jörg Sommer, 394577

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

On 14 Apr, Clint wrote:
> On Sun, Oct 22, 2006 at 12:22:37AM +0200, Jörg Sommer wrote:
> > % date --ver<TAB>
> > --version    -- Versionsinformation anzeigen und beenden
> > % date --ver
> > 
> > but the text is not completed.
> 
> This improves things slightly.

This is what _guard is for. Use something like:
  ': :_guard "^--*" format or date'

Oliver


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug#394577: zsh-beta: Completion of date does not work
  2007-04-17  9:31   ` Oliver Kiddle
@ 2007-04-21  5:08     ` Clint Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Clint Adams @ 2007-04-21  5:08 UTC (permalink / raw)
  To: Oliver Kiddle; +Cc: zsh-workers, Jörg Sommer, 394577

> This is what _guard is for. Use something like:
>   ': :_guard "^--*" format or date'

Okay.

Index: Completion/Unix/Command/_date
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_date,v
retrieving revision 1.5
diff -u -r1.5 _date
--- Completion/Unix/Command/_date	14 Apr 2007 20:04:07 -0000	1.5
+++ Completion/Unix/Command/_date	21 Apr 2007 05:07:38 -0000
@@ -43,6 +43,6 @@
 fi
 
 _arguments \
-  "$args[@]" \
   '-u[display or set time in UTC]' \
-  ':format or date'
+  ': :_guard "^--*" "format or date"' \
+  "$args[@]"


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-21  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20061021222237.GA15881@alea.gnuu.de>
2007-04-14 20:00 ` Bug#394577: zsh-beta: Completion of date does not work Clint Adams
2007-04-17  9:31   ` Oliver Kiddle
2007-04-21  5:08     ` Clint Adams

Code repositories for project(s) associated with this public 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).