zsh-users
 help / color / mirror / code / Atom feed
From: Jonas Juselius <jonas@iki.fi>
To: zsh-users@sunsite.dk
Cc: Bart Schaefer <schaefer@brasslantern.com>
Subject: Re: zstyle problems
Date: Wed, 2 Oct 2002 10:50:23 +0300	[thread overview]
Message-ID: <20021002075023.GA802@chem.helsinki.fi> (raw)
In-Reply-To: <1021002031516.ZM14546@candle.brasslantern.com>

Thanks,

but I still think this is a bit confusing. Typing 'cd' and then
pressing ^Xh says 'tags in context :completion::complete:cd::', which
made me think that this was the actual context... What would be the
correct way of defining different (individual) completions for 'cd' and other 
commands?

On Wed, Oct 02, 2002 at 03:15:16AM +0000, Bart Schaefer wrote:
> The individual command context is not yet established at the time the
> completer style is looked up; more specifically, the completer style is
> always checked with the context ":completion:::::" (except in specialty
> widgets like insert-and-predict).  The precise context including the
> command name (or contexts like "-tilde-") is actually set up *by* the
> completers.
> 

Ok, I tried this but I didn't see any difference from the standard
completion... Could this have something to do with menu completion and
sorting? If so, how can I disable sorting? The problem is that I have
more than 10 named dirs, and more than 100 users, and 98% of the time I
want to complete for my named dirs.

> } I also tried to change tag-order for the [-tilde-] completer so that it
> } would complete named directories before users, but that failed as
> } well...
> 
> Hmm.  The following works for me:
> 
>     zstyle ':completion::complete:-tilde-:*' tag-order \
> 	    named-directories users directory-stack
> 

Best regards, 
               .jonas.


-- 
while (!world->perfect) {
        whine (); 
}

[ PGP public key: http://www.iki.fi/jonas/pubkey.asc ]


  reply	other threads:[~2002-10-02  7:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 11:34 Jonas Juselius
2002-10-01 11:43 ` Jonas Juselius
2002-10-02  3:15 ` Bart Schaefer
2002-10-02  7:50   ` Jonas Juselius [this message]
2002-10-02  8:16     ` Borzenkov Andrey
2002-10-02  8:33     ` Bart Schaefer
2002-10-02  9:28       ` Jonas Juselius

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=20021002075023.GA802@chem.helsinki.fi \
    --to=jonas@iki.fi \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /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).