zsh-users
 help / color / mirror / code / Atom feed
From: Meino Christian Cramer <Meino.Cramer@gmx.de>
To: schaefer@brasslantern.com
Cc: zsh-users@sunsite.dk
Subject: Re: TAB-expansion problems
Date: Sun, 13 Mar 2005 09:54:50 +0100 (CET)	[thread overview]
Message-ID: <20050313.095450.74752161.Meino.Cramer@gmx.de> (raw)
In-Reply-To: <1050313045036.ZM12713@candle.brasslantern.com>

From: Bart Schaefer <schaefer@brasslantern.com>
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
 
		cd <TAB>

 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:

		 $HOME/ThisDir/AnotherDir

 and in ./AnotherDir there is another dir called "WhereIWantToBe"

 Now I enter

	 cd <TAB>

 Does zsh think that there is no match since I didn't enter

     cd Whe<TAB>

 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

	 cd WhereIWantToBe

 right after hitting <TAB>?

 Thanks a lot for all the friendly help !

 Keep hacking!
 Meino

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


  reply	other threads:[~2005-03-13  8:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10 18:42 Ex-bash script for optimisation Meino Christian Cramer
2005-03-11  5:14 ` Bart Schaefer
2005-03-11 18:37   ` TAB-expansion problems Meino Christian Cramer
2005-03-12  9:15     ` Tim Kruse
2005-03-13  4:50     ` Bart Schaefer
2005-03-13  8:54       ` Meino Christian Cramer [this message]
2005-03-13 17:21         ` Bart Schaefer
2005-03-14  4:37           ` ESC-Question Meino Christian Cramer
2005-03-14  7:44             ` ESC-Question Philippe Troin
2005-03-14 16:58               ` ESC-Question Meino Christian Cramer
2005-03-14 17:09                 ` ESC-Question Peter Stephenson
2005-03-14 17:22                   ` ESC-Question Meino Christian Cramer
2005-03-14 18:18                   ` ESC-Question Philippe Troin
2005-03-14 10:01             ` ESC-Question Sami Samhuri

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=20050313.095450.74752161.Meino.Cramer@gmx.de \
    --to=meino.cramer@gmx.de \
    --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).