Zsh Mailing List Archive
Messages sorted by:
Re: TAB-expansion problems
- X-seq: zsh-users 8594
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx
- Subject: Re: TAB-expansion problems
- Date: Sun, 13 Mar 2005 09:54:50 +0100 (CET)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <1050313045036.ZM12713@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1050311051417.ZM9377@xxxxxxxxxxxxxxxxxxxxxxx> <20050311.193734.78721293.Meino.Cramer@xxxxxx> <1050313045036.ZM12713@xxxxxxxxxxxxxxxxxxxxxxx>
From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
Subject: Re: TAB-expansion problems
Date: Sun, 13 Mar 2005 04:50:36 +0000
Hi Bart, hi list members!
I see, I have to learn A LOT more about zsh!
Ok, I "killed" cdpath and now my <TAB> does not report "everything
ever seen" anymore.
I included the first zstyle in my .$HOME/zshrc and got after entering
the additonal information, saying:
Completing local directory
which is exactly what I want to have (currently, for the first... ;)
An addtional I have:
Suppose your are here:
and in ./AnotherDir there is another dir called "WhereIWantToBe"
Now I enter
Does zsh think that there is no match since I didn't enter
thus preferring to show me possibilities for completions from the
path-directories OR does zsh "see" the one and only directoy
"WhereIWantToBe" and gives me
right after hitting <TAB>?
Thanks a lot for all the friendly help !
> On Mar 11, 7:37pm, Meino Christian Cramer wrote:
> } Suppose I am at my $HOME/tmp/. directory. Furthermore there is only
> } ONE additional directory called "TheLonelyOne" there. And I want to
> } to change into that directory. As a lazy person now I would type on
> } the commandline
> } cd <TAB>
> } and want to get
> } cd TheLonelyOne
> } then instead all worldwide reachable directories as a suggestion.
> As Tim Kruse has said, the likelyhood here is that zsh is suggesting
> subdirectories of the directories listed in your cdpath. If you add
> the following style you'll get better information:
> zstyle ':completion:*' format '%SCompleting %U%d%u%s'
> After you've tried that, so you've seen what's going on, you can then
> add this style:
> zstyle :completion::complete:cd:: tag-order \
> local-directories path-directories
> The tag-order style controls which sets of matches are displayed. In
> the example above, local-directories are preferred, and only when no
> local directories are found are path-directories (those found along
> your cdpath) shown. The default is to display all sets of matches at
> the same time.
> } From my current point of knowledge I didn't neither know the correct
> } naming for that behaviour
> It's "completion".
Messages sorted by: