Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: default completion for X
- X-seq: zsh-workers 9791
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: default completion for X
- Date: Fri, 18 Feb 2000 12:02:21 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Just had a look at deja.com and found a message form someone
complaining that completion for X command does not ccomplete filenames
as the default.
I think we can use the patch below which makes filenames only be
completed if _x_arguments is called without arguments (i.e. from
_normal).
Bye
Sven
diff -ru ../z.old/Completion/X/_x_arguments Completion/X/_x_arguments
--- ../z.old/Completion/X/_x_arguments Fri Feb 18 11:06:44 2000
+++ Completion/X/_x_arguments Fri Feb 18 11:56:20 2000
@@ -7,6 +7,8 @@
'-geometry:geometry:_x_geometry'
)
+(( $# )) || xargs=( "$xargs[@]" '*:files: _files' )
+
long=$argv[(I)--]
if (( long )); then
argv[long]=( "$xargs[@]" -- )
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author