zsh-workers
 help / color / mirror / code / Atom feed
From: "Benjamin R. Haskell" <zsh@benizi.com>
To: Zsh Workers <zsh-workers@zsh.org>
Subject: #compdef lines prevent X11 and init.d completion
Date: Sun, 10 Jan 2010 12:10:30 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1001101051310.8115@hp.internal> (raw)

The first line of Completion/X/Utility/_x_arguments is:

#compdef -P */X11(|R[456])/*

It appears the purpose of that line is to grant '-display' and 
'-geometry' arguments to any command residing in those directories.

I frequently use <filename as a command unto itself, happily 
tab-completing the whole of filename.  But, that line prevents me from 
tab-completing into the /etc/X11 and /usr/share/X11 directories.

Similarly, the first line of Completion/Unix/Command/_init_d is:

#compdef -P */(init|rc[0-9S]#).d/*

which prevents completing things in /etc/init.d.

Seems like a bug to me -- not 100% sure where, so I figured I'd ping the 
list before patching it myself.

Thanks,
Ben


             reply	other threads:[~2010-01-10 17:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-10 17:10 Benjamin R. Haskell [this message]
2010-01-10 18:12 ` Benjamin R. Haskell
2010-01-13 20:28   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.01.1001101051310.8115@hp.internal \
    --to=zsh@benizi.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).