zsh-users
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.dk
Subject: Re: cd completion and CDABLE_VARS
Date: Thu, 11 Mar 2004 17:26:21 +0100	[thread overview]
Message-ID: <20040311162621.GA18521@ay.vinc17.org> (raw)
In-Reply-To: <14646.1079008097@csr.com>

On 2004-03-11 12:28:17 +0000, Peter Stephenson wrote:
> Go to the point where you want completion to be performed and type ^xh.
> You should get something like:
> 
> tags in context :completion::complete:cd::
>     local-directories path-directories named-directories  (_alternative _cd) 
>     users named-directories directory-stack               (_tilde _alternative _cd) 
>     users                                                 (_users _tilde _alternative _cd)
> 
> (I actually typed `cd z^xh' but it shouldn't matter much.)
> 
> Those names on the left of the list are what you want.  You now need to
> tell the completion system what order you want it to show the tags:
> 
> zstyle ':completion:*:complete:cd:*' tag-order \
>   'local-directories path-directories directory-stack' '*'

Thanks.

BTW, in my case, before using the above zstyle, when I did

  cd pri[TAB]

I got:

  princell  private/

where princell isn't a named directory, but a user name (~princell
being his home directory). If user home directories are regarded as
named directories (as ^xh suggests), then what does "users" mean?

> bindkey "^X^N" _next_tags

I have the same problem as Stefan. I don't get the matches for the
next set of tags with it.

Concerning the keys, I also suggest "^[[Z", which corresponds to
shift-tab here.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


  parent reply	other threads:[~2004-03-11 16:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-11 11:45 Vincent Lefevre
2004-03-11 12:28 ` Peter Stephenson
2004-03-11 13:35   ` Stefan Reichör
2004-03-11 14:11     ` Peter Stephenson
2004-03-11 14:46       ` Stefan Reichör
2004-03-11 15:05         ` Peter Stephenson
2004-03-11 15:28           ` Stefan Reichör
2004-03-11 15:45             ` Peter Stephenson
2004-03-11 15:55               ` Stefan Reichör
2004-03-11 16:26   ` Vincent Lefevre [this message]
2004-03-11 16:41     ` Vincent Lefevre

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=20040311162621.GA18521@ay.vinc17.org \
    --to=vincent@vinc17.org \
    --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).