zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: default completion for X
@ 2000-02-18 11:02 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-02-18 11:02 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


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

only message in thread, other threads:[~2000-02-18 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-18 11:02 PATCH: default completion for X Sven Wischnowsky

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).