zsh-users
 help / color / mirror / code / Atom feed
From: Nikita Borisov <nborisov@calum.csclub.uwaterloo.ca>
To: zsh-users@math.gatech.edu
Subject: completion and .files
Date: Sun, 23 Feb 1997 14:34:35 -0500	[thread overview]
Message-ID: <199702231934.OAA07067@calum.csclub.uwaterloo.ca> (raw)

Whenever I create a complection that uses the -g option of compctl, I
lose the ability to handle .files the way I want, which is simply to say
the same way that zsh handles them normally.

Here's an example - compctl rule for cd.  I start out with the
following:

Attempt #1:
compctl -g '*(-/x)' cd

Now "cd <TAB>" gives me the proper completions for all the directories.
However, "cd .foo<TAB>" gives me an empty completion list, because no
.files match the -g pattern that I give.

Attempt #2:
compctl -g '*(-/x)' -x 'S[.]' -g '.*(-/x)' -- cd 

This fixes the original problem, but "cd ~/.foo<TAB>" fails once again.

Attempt #3:

compctl -g '(.|)*(-/x)' -- cd

This at least gets all the .directories; however 'cd <TAB>' lists all
my .directories as well.

What I'm basically looking for is to get at all the files that zsh would
have listed had I not used a compctl rule, and filter out any that are
not directories.


             reply	other threads:[~1997-02-23 19:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-23 19:34 Nikita Borisov [this message]
1997-02-23 21:31 ` Zefram
1997-02-23 21:32 ` Hrvoje Niksic

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=199702231934.OAA07067@calum.csclub.uwaterloo.ca \
    --to=nborisov@calum.csclub.uwaterloo.ca \
    --cc=zsh-users@math.gatech.edu \
    /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).